https://github.com/nickbeth/decathlon-tracker
A simple decathlon.it product tracker in python3.
https://github.com/nickbeth/decathlon-tracker
decathlon decathlon-tracker notifications product-tracker python3
Last synced: about 1 year ago
JSON representation
A simple decathlon.it product tracker in python3.
- Host: GitHub
- URL: https://github.com/nickbeth/decathlon-tracker
- Owner: nickbeth
- Created: 2020-11-24T10:46:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T14:54:16.000Z (about 5 years ago)
- Last Synced: 2025-01-21T07:28:36.249Z (over 1 year ago)
- Topics: decathlon, decathlon-tracker, notifications, product-tracker, python3
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://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