Posts

Showing posts with the label export-to-csv

Output for scrapped data with Text value in CSV file

Output for scrapped data with Text value in CSV file I am new to web scrapping using Python and need help on extracting Sub category name (Title) and the Page Title (Main Category Header) with the URLs that is being scrapped with my Python code. I tried .text with beautifulsoup but I think there could be better option to do this task as I am getting error and no output once used. Help would be appreciated. Please take a look at the code and help with Output stored in csv file with URL t Sub category title t Main Category header. Example: Subcategory URL Required: http://www.medicalexpo.com/medical-manufacturer/neonatal-incubator-2963.html Neonatal incubators Pediatrics http://www.medicalexpo.com/medical-manufacturer/infant-radiant-warmer-13522.html Infant radiant warmers Pediatrics http://www.medicalexpo.com/medical-manufacturer/infant-phototherapy-lamp-44327.html Infant phototherapy lamps Pediatrics Something like this Code: from bs4 import Bea...