Giter Site home page Giter Site logo

alankar0416 / justdial-scrapper Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 22.0 2 KB

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

Python 100.00%
scraping-websites python justdial business scraping beautifulsoup beautifulsoup-parsing-library beautifulsoup-library urllib2 csv

justdial-scrapper's Introduction

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..

justdial-scrapper's People

Contributors

alankar0416 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

justdial-scrapper's Issues

trying - but now worked

print ("#" + str(service_count) + " " + dict_service['Name']
(service_count) += 1

shows syntax error here and bs4 module not found error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.