Coder Social home page Coder Social logo

amazon_reviews_scrapy's Introduction

Amazon Reviews scrapy

This project uses 2 separate scrapy instances. It would have been possible to have 2 spiders that share settings & pipelines but the current solution was faster to set up and more flexible to use.
'amazonproducts' identifies products to scrape based on input category URLs ('Routers' or 'In-ear headphones' pages) and loads a PostgreSQL 'products' table hosted on an AWS RDS server. The products -identified by their ASIN (Amazon Standard Identification Number)- are also loaded into a Redis set.
'amazon2' reads the ASINs to process in Redis queue and fills a second 'reviews' table in the PostgreSQL database.The 2 tables share ASIN as a foreign key. Several instances of the amazon2 scrapy can be run (locally or remotely), all feeding from the same Redis queue.

The program leverage the scrapy.proxies package to rotate PIs.
To use this program:

  • select the start_urls to parse in amazonproducts_spider_py
  • udpate all servers config in both setttings.py (PostgreSQL, Redis)
  • create a txt file with IP addresses or remove the use of scrapy_proxies.RandomProxy in both settings.py

amazon_reviews_scrapy's People

Contributors

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