Giter Club home page Giter Club logo

shopping_scraper's Introduction

Shopping web scraper: scrapes products from different Dutch supermarkets, processes and organizes the results.

A personal project to practise with scrapy, MongoDB, Redis, Docker and flask.

Usage

Shop scraper is delivered with docker and good to go with docker-compose:

> docker-compose up

If you need to rebuild old images, start the app by running the script:

> ./run.sh

Interface

When the app is up and running, you can open the webapp from browser, from 0.0.0.0:5000.

There you will find the search page:

img.png

Digit the search term and press Search to see the results page:

img_1.png

Note: digit the search term in Dutch since the supermarkets of interest are from the Netherlands. Here you can see the results from different supermarkets in a single table, with product name, shop price, unit price and unit measure, image and a link to the shop.

All the columns are sortable (except the 'image' column), and there is a search bar where you can search for a particular product.

Architecture

The project is composed of different units, each of them is a docker container (except for the client, which is served by the flask backend). The communication is done by using message-passing through redis over docker networks.

Repo organization

  • client: flask client and backend
  • broker: a broker which directs requests traffic from the client back-end to crawlers
  • crawling: crawling of products from web shops, their processing and insertion into the db
  • data_collections: database schema definition
  • data_processing: tools to make products comparisons, e.g., to check if two products are the same, or to normalize product measure units and quantities

shopping_scraper's People

Contributors

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