GithubHelp home page GithubHelp logo

mywebscraper's Introduction

<<<<<<< HEAD A web crawler to scrape data from New Delhi, Kolkata, Mumbai, Hyderabad, Chennai, Bangalore, Mysore using a scrapy project. How to run:

  1. Install scrapy
  2. Run "scrapy crawl -o stuff.json" on command line
  3. Stuff.json will contain json data of scraped stuff. The spider code is in /spiders/zomatospider.py. Uncomment the other cities' URLs in the start_urls list.
  4. Do json to csv conversion if required. Note: I have written code so that lat, lon, cities, reviews are scraped. We can scrape a lot more by modifying zomatospider.py.

Data ( I don't know why this is not happening)

The scraped data can be found in \data and it contains three files restaurants.csv, cuisines.csv, collections.csv. Each restaurant in the dataset is uniquely identified by its r_id. restaurants contains the following variables:

  • r_type: Whether the listing is a casual dining restaurant, a fine-dining restaurant, a cafe etc.
  • r_name
  • area
  • bookmarks: # bookmarks of the restaurant made using the bookmark feature in the website
  • checkins: Check-ins using the "been here" feature
  • city
  • cost: Cost for two in rupees
  • r_address
  • link
  • photos: No. of photos of the restaurant uploaded to the service
  • r_id
  • r_latitude: Latitude coordinate of the restaurant's location
  • r_longitude: Longitude coordinate of the restaurant's location
  • rating: Average rating out of 5
  • rating_votes: Number of ratings
  • reviews: Number of reviews

This code is the newer modified version of the scrapy code from https://github.com/mushimaster/ZomatoData. This cod eis obsolete as Zomato changed its web markup and hence the spider can't scrape well.

MyWebScraper

9c384b9f6d41a60608175e9c6cf7bde2846a09b6

mywebscraper's People

Contributors

prashanthtk avatar

Watchers

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