Alankar0416 / Justdial-Scrapper

A 100% working Justdial scrapper, Just enter the url and it'll extract business info from it
13 stars 22 forks source link
beautifulsoup beautifulsoup-library beautifulsoup-parsing-library business csv india justdial python scraping scraping-websites urllib2

Justdial-Scrapper

A 100% working Justdial scrapper, Just enter the url and it'll extract business info from it

  1. Enter the url from which you want to extract information and save it in the 'url' variable ex:

url="https://www.justdial.com/Agra/Readymade-Garment-Retailers/nct-10401947/page-%s" % (page_number)

  1. change the name of the csv file to be generated to be an appropriate one ex:

out_file = open('Readymade-Garment-Retailers_agra.csv','wb')

Run the file : python ./jd_scraper.py

You will see the results in CSV as well as on the terminal.

Thanks !!!

Happy coding..