THIS PROJECT IS NO LONGER MAINTAINED! Please use srhinos fork from now on.
Python bot which automatically claims twitch amazon prime gaming loot :D
- Install python3
- Install package requirements:
$> pip install -r requirements.txt
- Install playwright:
$> python -m playwright install
- Create your own cookies.txt and publishers.txt (see example files)
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:
- -c | --cookie: Path to cookies.txt file
- -p | --publishers: Path to publishers.txt file
- -l | --loop: loops the script with a cooldown of 24h
- --dump: print the html-index page (used for issues/website changes)
- -d | --debug: Print debug messages (used for issues)
- -nh | --no-headless: starts the script with a visible browser (mainly for debugging)
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
Use this bot at your own risk! For more information read the license file.