Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Latest commit

 

History

History
61 lines (37 loc) · 2.6 KB

README.md

File metadata and controls

61 lines (37 loc) · 2.6 KB

THIS PROJECT IS NO LONGER MAINTAINED! Please use srhinos fork from now on.

Primelooter

GitHub tag (latest by date) Python GitHub license

Python bot which automatically claims twitch amazon prime gaming loot :D

Usage

1. ⚙️ General Setup

Local 📌

  1. Install python3
  2. Install package requirements: $> pip install -r requirements.txt
  3. Install playwright: $> python -m playwright install
  4. 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)

2. 🍪 Generate a cookie.txt (Firefox)

  1. Install this addon: cookie.txt
  2. Goto: https://gaming.amazon.com
  3. Login with your credentials
  4. 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)

3. 🏢 Create a publishers.txt

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

4. 🏃 Run

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

ko-fi

Disclaimer

Use this bot at your own risk! For more information read the license file.