Coder Social home page Coder Social logo

restaurant_crawler's Introduction

Restaurant Crawler

Scapres zomato for basic info about restaurants, also displays scraped items on google map.


  • Uses Scrapy to create spider and manage pipline.

  • Uses Django to store scraped data using Django Models, ORM and create website to display scraped data.

Execution Instructions:

  1. Clone the repository to your local file system

  2. create a virtual environment using "venv" module :

    python -m venv your_venv

  3. activate the venv and install dependencies using pip:

    pip install django

    pip install scrapy

  4. Now, we need to run migrations to save our Django models in Database (move to mapsite folder )

python manage.py makemigrations
python manage.py migrate
  1. Run the spider to fetch data from the website, the fetched data will be stored as Django models as we are using django items to hold the fetched data (cd web_scraper/web_scraper)
pip install scrapy-djangoitem 
scrapy crawl zom_scraper

Note: you can check the data in the admin page

  1. Run django internal server to see results on map

python manage.py runserver


Output:

the web page looks something like this: image

restaurant_crawler's People

Contributors

karanraghani avatar

Stargazers

Teddy Einsidler avatar

Watchers

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