Python bot which automatically claims twitch amazon prime gaming loot :D
Local 📌
- Install python 3.11
- Install package requirements:
pip install -r requirements.txt
- Create your own cookies.txt and publishers.txt (see example files)`
Docker 🐳
If you want to use the provided docker image (only linux/amd64 plattform for now) you must mount the config.txt and providers.txt into the app path. (example compose file is provided)
- Install this addon: cookie.txt
- Goto: https://gaming.amazon.com
- Login with your credentials
- There should be a new add-on icon in the right corner. Click on it and Export Cookies->Current Site
(Be careful not to share your cookie.txt! Keep it a secret like your credentials)
Create a publishers.txt like the example file. Each line represents the publisher name used on the https://gaming.amazon.com website (add 'all' to claim all offers).
The script offers multiple arguments:
-p PUBLISHERS, --publishers PUBLISHERS
Path to publishers.txt file
-c COOKIES, --cookies COOKIES
Path to cookies.txt file
-l, --loop Shall the script loop itself? (Cooldown 24h)
--dump Dump html to output
-d, --debug Print Log at debug level
-nh, --no-headless Shall the script not use headless mode?
If you use docker simply start the container.
If you want to use cron.d instead of letting the script wait 24h you must create a new file under /etc/cron.d
.
Example:
0 0 * * * root : Primelooter ; /usr/bin/python3 /path/to/primelooter.py --cookie /path/to/cookie.txt --publishers /path/to/publishers.txt
Please read CONTRIBUTING.md for more information on contributing to this project!
Use this bot at your own risk! For more information read the license file.