Git Product home page Git Product logo

justdial-website-scrapper's Introduction

alt text

An automation script written in Node.js, powered by Puppeteer to scrap multiple pages of Justdial (an Indian Yellow Pages website) and exports specific information in JSON format.

Disclaimer
It is illegal to scrape JustDial, but the code is made open-source purely for educational purposes to understand technologies like NodeJS, Puppeteer and Automation Testing.

It will extract data of specific business query from a city, from justdial in Json form given below.


Example


 {
    "name": "Sagar Clinic and Day Care",
    "url": "https://www.justdial.com/Bangalore/Sagar-Clinic-and-Day-Care-Near-Petrol-Bunk-Jp-Nagar-7th-Phase/080PXX80-XX80-190215112653-J9Y1_BZDET?xid=QmFuZ2Fsb3JlIERvY3RvcnM=",
    "phoneNumber": "+(91)-080-41710009",
    "rating": "4.6",
    "votes": "27",
    "address": "No 47/26/27, 12th Main, Puttenhalli Main Road, Jp Nagar 7th Phase, Bangalore - 560078, Near Petrol Bunk",
    "categories": "General Physician Doctors, Home Nursing Services",
    "businfo": "Sagar Clinic and Day Care in Jp Nagar 7th Phase, Bangalore\n\nSagar Clinic and Day Care in Bangalore is one of the leading businesses in the Physiotherapists For Joint Pain."
    "faq": "1. What are the various mode of payment accepted here ?\n\nYou can make payment Via Cash, Master Card, Credit Card.\n\n2. Which is the nearest landmark ?\n\nYou can easily locate the establishment as it is in close proximity to Near Petrol Bunk"
  }

Installation

$ npm install

Usage

Change these values in line 6-9 of index.js:

const CITY = 'Mumbai';
const KEYWORD = 'street-foods';
const INITIAL_PAGE = 0;
const NUMBER_OF_PAGES = 2;
$ npm start

justdial-website-scrapper's People

Contributors

nileshkant avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.