Giter VIP home page Giter VIP logo

decathlon-tracker's Introduction

decathlon-tracker

A simple Decathlon Italy product tracker in python. It is capable of tracking the availability of multiple products, but it does not auto-buy them!

Setup

decathlon-tracker requires requests and beautifulsoup4 modules to be installed before use:

pip install requests
pip install bs4

Afterwards, create a products.txt file containing the URLs to watch, one per line, in the same dir of the program.

Push notifications

The script allows for push notifications to be sent to a notify.run endpoint, for mobile and browser push notifications. The functionality requires the notify-run module:

pip install notify-run

To setup the endpoint, create a notify_endpoint.txt file in the same dir of the program containing the channel id that you obtained from the notify.run website. Remember to subscribe any device you want to receive notifications on to the channel.

If an endpoint is not provided, a warning message will be displayed in the console and an internal flag will be set not to send notifications, but the program will execute just fine and only print to the console.

Usage

Usage: decathlon-tracker.py [-h] [-p PATH] [-r RELOAD] [-o] [-l {ERROR,WARN,INFO,VERBOSE,DEBUG}]

Optional arguments:

  • -h, --help Show this help message and exit
  • -p PATH, --path PATH Path of file containing URLs of products to track. Default: ./products.txt
  • -r RELOAD, --reload RELOAD Reload interval in seconds. Default: 30
  • -o, --once Iterate the tracker loop once and exit
  • -l, --logger {ERROR,WARN,INFO,VERBOSE,DEBUG} Specify log level. Default: INFO

decathlon-tracker's People

Contributors

nickbeth avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kgeethaanjali

decathlon-tracker's Issues

ERROR - is not available

I got "ERROR - is not available" for every product I tried, even if they are available.
Am I doing something wrong?

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.