Skip to content

The integration of Scrapy and Django to scrape phone products from Amazon.com

Notifications You must be signed in to change notification settings

FatemeFouladkar/Django-and-Amazon-Scraper-Integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Scraper Integration With Django

A simple project to scrape the data of cellphone products from amazon and save them in the database.

Start the project

git pull https://github.com/FatemeFouladkar/Django-and-Amazon-Scraper-Integration.git

virtualenv .venv
.venv\Scripts\activate.ps1 

pip install -r requirements.txt

python manage.py makemigarations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

Head to localhost:8000/admin to see the django admin panel login page:

Admin panel login page

Enter your credential to login to the admin panel. You'll be able to see the tables like so:

Admin panel

Search any keyword related to cellphones in Amazon.com:

Search in Amazon.com

Apply any filter you want, and finally copy the link to the page. Add the links to the Input Links in the Django admin panel. Make sure to separate the links with ',' :

Add Input Links

  • Make sure to check the scrape option if you want the links to be scraped.

Clink the Start Scraping! button, so the spiders start doing their jobs.

Start scraping

Go over to Amazon Phone Products to see the objects stored in the database:

Scraped products

About

The integration of Scrapy and Django to scrape phone products from Amazon.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published