GithubHelp home page GithubHelp logo

mauri-medina / pricemory Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 3.0 24.4 MB

Tracking and display of price history of products from Paraguay

Home Page: http://www.precio.digital

Shell 0.24% Python 69.85% HTML 26.00% CSS 1.47% JavaScript 2.44%
price-tracker scraper scrapy django chartjs spider price-history

pricemory's Introduction

Pricemory

Tracking and display of price history of products from Paraguay

project example

It uses scrapy for scraping shops sites and django for web framework

Tracked shops

Requirements

  • Python 3.6+
  • PIP
  • Django 2.2+
  • PostgreSQL 12+

Installation

  1. Clone and install project
git clone https://github.com/mauri-medina/pricemory.git
cd pricemory
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
cp .env.example .env
python manage.py runserver 0.0.0.0:8000
  1. Configurations
  • the existing values in .env can be used but is recommended to create a new secret key for django.

Usage

Run django

python manage.py runserver 0.0.0.0:8000

There is a database that can be used for testing

Run spider

In crawler directory run:

scrapy crawl spider-name

The spider names are specified in their files, for example to run the spider from super seis:

scrapy crawl superseis_spider

This will save the scrapped data to the database, to save in another formats check scrappy documentation

Run all the spiders

python crawler_runner.py

The script [crawler_runner](crawler/crawler_runner.py) by default will run the spiders sequentially, one spider after another, but other options are available in the script.

The runner output is logged in the file defined in the script

Run django

python manage.py runserver 0.0.0.0:8000

Contributing

Pull requests are welcome.

Any help or feedback is appreciated, especially for the design of the site.

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

TODO

  • General improve of site design
  • Add more shops

Contributors / Thanks

License

This project is licensed under the terms of the GNU General Public License v3.0

pricemory's People

Contributors

mauri-medina avatar zalimben avatar

Stargazers

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