Code Monkey home page Code Monkey logo

yelp-scraper's Introduction

yelp scraper

this scraper scrapes the search result of restaurants of miami city from yelp and then go to each restaurant then scrapes the following data.

  • name
  • url
  • type
  • address]
  • reviews
  • rating

Run Locally

To run the script successfully you need 3 things:

  • google service account email
  • private key
  • google sheet id. To get key and email (follow this documentation for service account).
    google sheet id is random string in url of google sheet where you want to store data.

Clone the project

  git clone https://github.com/kashif-ghafoor/yelp-scraper.git

Setup environement variables.

  • rename the .env_sample to .env
  • replace the and in .env file with email and private key you copied from json file.
  • replace the google sheet id in third line of .env file with .

Note: you have to explicitly give google sheet access to the email you created.

Go to the project directory

  cd yelp-scraper

Install dependencies

  npm install

Start the script

  npm run start

wait for the script to complete you will see data in your google sheets.

Alternatively you can run it in codespaces.
rename .env_sample to .env
put the required data in .env npm run start tadah...

yelp-scraper's People

Contributors

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