Skip to content
Proyectos

rangermix/TwitchDropsMiner

Ver en GitHub

Acerca de

Aplicación para conseguir Twitch Drops con límite de tiempo mientras estás ausente, con recogida automática de recompensas y cambio de canal. Incluye una interfaz web y está preparada para Docker.

Juegos y emulación

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+7
in 15 days
+16
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Twitch Drops Miner

Automatically earn timed Twitch Drops without downloading stream video or audio. Mining reads playlist metadata and checks segment response headers to keep bandwidth low.

GitHub stars Latest release Docker pulls License Python 3.12 or newer

TDM discovers eligible campaigns, selects live channels, and tracks and claims rewards from a web dashboard. Run it on your own computer or home server. This hobby project supports personal use on your own hardware and home network; third-party hosting and services operated for other users are outside its support scope.

Twitch Drops Miner web dashboard in light and dark mode

  • Choose and prioritize games, or let TDM discover available campaigns.
  • Mine other eligible games as fallback while preserving your saved priority list.
  • Reorder the wanted queue on Main until restart, without changing your saved Mining list. Channel selection follows this order among campaigns the channel can earn. In v2.5.0, queue rows also show reward artwork and live drop progress. Starting in v2.6.0, the queue's information button explains which ordering rules apply.
  • Track campaigns and rewards, and ignore drops you do not want.
  • In source builds with this feature, keep the default automatic claiming or choose when to claim drops yourself.
  • Starting in v2.7.0, track watch-based Open Reward Campaigns and see how many times you have earned a repeat reward.
  • Skip channels while Twitch reports an active ban, including temporary bans.
  • Optionally prefer channels you follow when otherwise equally ranked channels offer the same drops.
  • Sign in inside the dashboard; TDM saves and renews your session automatically.
  • Review claimed-drop history, export it to CSV, and set up Telegram or Discord alerts for claims and new versions. Discord claim alerts include reward artwork when available. See drop history recovery if the local file is damaged.
  • Manage everything from a web dashboard with optional password protection.
  • Set daily mining hours in the miner’s local timezone.
  • Pause mining for 10 minutes, an hour, until tomorrow, or until you resume, for example while you watch Twitch yourself. Fixed durations use elapsed time; tomorrow means the miner's next local midnight. Restarting TDM clears the pause, and already-earned rewards can still be claimed while paused. Reconnecting to the same running miner keeps its latest pause state.

Rejected settings requests and failed saves keep your previous settings. See connection and refresh limits.

In v2.4.0, Settings groups controls into General, Mining, Games, Notifications, and Account & Maintenance. The Pause menu stops watching temporarily; it resets on restart and leaves earned reward claims available.

The redesigned dashboard's Now Watching card offers Show thumbnail, off on each page load. When enabled, it shows a Twitch JPEG thumbnail, refreshed on channel updates at most once per minute. It does not play video or audio. The header adapts to longer translations, grouping account controls and navigation on smaller screens. Hover over shortened account or renewal text to read it in full. This dashboard change is included in the published releases. The dashboard refreshes its channel list on reconnect and clears it when no games are left to watch.

Inventory has expandable campaigns, card/list view buttons and Add to mining list for linked games not yet selected. Campaign details appear once, with matching linked/unlinked card layouts. It supports All / Linked / Not Linked account-link filters. Settings → Mining has a default-off option to mine campaigns reported as Not Linked; read its warning and check Twitch progress. Automatic claims for game rewards wait for Twitch to report the campaign as linked. See the dashboard guide.

In v2.5.0, the connection indicator and language selector share a height, and the Inventory toolbar aligns with its search field. Long translated button labels can wrap on narrow screens.

Settings → Games → Mining list marks each game as LINKED or NOT LINKED from your inventory, lists linked games first in Available Games, can filter by link status, and offers Select Linked to add every linked game at once. Selection controls wrap on narrow screens. See Choose games and priorities.

TDM ignores progress-poll responses superseded by newer campaign observations or inventory reloads. Fresh Twitch readings can still correct local progress.

Use Settings → Account & Maintenance → Dump diagnosis data for bug reports. It saves deidentified miner state and recent sanitized API responses in your data volume; see diagnosis data.

TDM checks active Drop progress about once a minute while successfully watching, including when a reward still has substantial watch time remaining. It rechecks the current stream during channel refresh and switches to another eligible stream when it detects the broadcast has ended.

Quick start

With Docker installed, choose one setup below. Shell examples use Bash (Linux, macOS, or WSL).

Docker images since v2.6.0 include an init process to clean up exited child processes. The examples retain --init and init: true for compatibility with v2.5.0 and older images.

Docker run

Pull and start the published image:

docker pull rangermix/twitch-drops-miner:2.7.0
docker run -d \
  --name twitch-drops-miner --init --stop-timeout 30 --shm-size 256m \
  -p 8080:8080 -e TZ=Australia/Sydney \
  -v "${PWD}/data:/app/data" \
  --restart unless-stopped \
  rangermix/twitch-drops-miner:2.7.0

Docker Compose

For a new installation, create a dedicated folder and save this as compose.yaml inside it. Set TZ to your home internet connection's timezone:

services:
  twitch-drops-miner:
    image: rangermix/twitch-drops-miner:2.7.0
    container_name: twitch-drops-miner
    init: true
    stop_grace_period: 30s
    shm_size: 256m
    ports:
      - "8080:8080"
    volumes:
      - ./data:/app/data
      - ./logs:/app/logs
    environment:
      TZ: Australia/Sydney
    restart: unless-stopped

From that folder, pull and start the image:

docker compose pull && docker compose up -d

For either setup, open http://localhost:8080, or http://YOUR-SERVER:8080 from another device on your home network. Host names not covered by the allowed host names need ALLOWED_HOSTS. The PUBLIC_BASE_URL host needs no extra entry, even if it ends in a dot. Keep the data directory when updating. For Compose management, source builds, and switching an existing installation to Compose, see the installation guide. For source security rebuilds with refreshed base images and packages, see the build instructions.

Sign in

  1. Open the dashboard. When Twitch login is required, TDM shows its container browser and the Twitch sign in page automatically.
  2. Sign in and complete Twitch verification, then select Finish sign in. Chromium may close automatically a few seconds after login. Firefox requires Finish sign in or closing its window. Password saving is disabled. Expand Copy and paste to transfer text to or from the browser.
  3. TDM verifies your account and campaign access, saves the session, and returns to the normal dashboard. Select your games there.

You can close and reopen the dashboard tab during sign in; the container browser keeps running until the attempt finishes or times out.

Set Docker’s TZ to match your home internet connection’s timezone; change Australia/Sydney in the example as needed. Browsers and the temporary display are included in the image. Current source builds prefer Firefox for sign-in and use Chromium for renewal. The published v2.7.0 image uses Chromium for both. Your everyday browser profile is separate. TDM renews the session automatically using a private verification browser, separate from the sign-in viewer. Linux/macOS use a private pipe for this browser's control connection; v2.5.0 preserves it through display wrappers. Windows uses loopback. See session renewal. In current source builds, the saved proxy also applies to server verification and renewal. See proxy routing. Settings → Account & Maintenance → Log out of Twitch clears this miner’s session and opens sign in again for account replacement. See authentication and troubleshooting. If Twitch rejects the embedded browser, select Use desktop helper and run the matching Windows, Linux, or macOS helper with your dashboard address. The first helper to connect is accepted during a ten-minute window; no pairing code is needed. See desktop helper downloads and steps. HTTPS verification is on by default. For a self-signed dashboard certificate, v2.5.0 helpers accept --ca-file. The unsafe --insecure alternative is limited to private or loopback HTTPS destinations. See helper HTTPS. For rejected helper logins, report the fixed error code and a redacted miner log; see helper diagnostics.

Keep session data directories private. On Windows, credential files inherit the directory's access permissions (ACLs); Unix file-mode numbers do not verify those permissions. On Linux/macOS, session files use owner-only permissions.

Updating Docker

With docker run

For the docker run setup above, run this from the same folder so ${PWD}/data still points to your existing data. Keep your own timezone and any custom container name, ports, mounts, or environment options when adapting the commands. Review the release notes first.

docker pull rangermix/twitch-drops-miner:latest &&
docker stop --timeout 30 twitch-drops-miner &&
docker rm twitch-drops-miner &&
docker run -d \
  --name twitch-drops-miner --init --stop-timeout 30 --shm-size 256m \
  -p 8080:8080 -e TZ=Australia/Sydney \
  -v "${PWD}/data:/app/data" \
  --restart unless-stopped \
  rangermix/twitch-drops-miner:latest

This replaces the container while keeping the mounted data. latest selects the current stable image when you pull; it does not update automatically. To choose a specific release, replace latest in both places with its version tag.

With Docker Compose

For the published-image setup above, change the image: tag in compose.yaml to the release you want, or use latest. From the folder containing that file, run:

docker compose pull && docker compose up -d

For the repository's source-building docker-compose.yml, run this from your original Git clone on the branch you intend to update:

git pull --ff-only && docker compose up -d --build

This builds that branch's source, which may be newer than the published release, and reuses the configured data/log mounts. For named volumes, custom Compose files, and backup guidance, see detailed update steps.

User guides

Browse the GitHub wiki or read the same guides in docs:

Help and contributions

Search existing issues before reporting a problem. Use the bug-report form with the running app version, hosting environment, reproduction steps, and redacted evidence. See CONTRIBUTING.md for bug reports, translations, and development. CI lint and type checks target Python 3.12. CI lint checks validate source without rewriting it. This fork uses AI-assisted development with automated checks and independent review. Agents acknowledge work in the relevant issue or PR before starting and post the outcome there when work ends or pauses.

Visual dashboard PRs require redacted screenshots, with before/after views when an existing screen changes; see contribution guidance.

Based on DevilXD/TwitchDropsMiner. See credits for the original project and translation contributors. You can support this fork by starring it or buying the maintainer a coffee.

Contributors

People who contributed merged pull requests
Contributor Merged pull requests
@0zLloen #152 · #185 · #191 · #188 · #192 · #193 · #194 · #186 · #189 · #175 · #176 · #202 · #200 · #201 · #204 · #207 · #216 · #222 · #215 · #226 · #224 · #223 · #209 · #237 · #229
@3lb0z0 #110
@andreluisfc #76
@birdhimself #41
@brk275 #171 · #172 · #179 · #197 · #195
@capkz #70
@Dolverin #142
@EthanBlazkowicz #33 · #196
@Frollir #235
@Klages #94 · #95 · #183
@Knight-sys #3
@qfmc7040 #231
@rangermix #1 · #2 · #7 · #8 · #9 · #13 · #20 · #24 · #29 · #32 · #45 · #74 · #79 · #80 · #84 · #86 · #88 · #93 · #89 · #90 · #91 · #92 · #104 · #105 · #116 · #119 · #120 · #124 · #125 · #126 · #127 · #131 · #133 · #145 · #146 · #149 · #153 · #154 · #159 · #160 · #161 · #164 · #167 · #169 · #203 · #211 · #228 · #239 · #258
@Rotograph #234 · #243 · #242
@Sean-Destefano #49
@SimpliAj #72
@Stein-N #71
@vurmil #12 · #17 · #18 · #100 · #150 · #102 · #101

Settings → Mining → Reward types chooses which reward types to mine and, optionally, drag them into a preferred order; earlier reward deadlines break ties. Position fields also support keyboard editing; Tab moves normally while changes save, and settings updates keep your chosen reward or game control focused. Reward types explains the ordering.

The sign-in page also offers an advanced existing-session token option. See the authentication guide for clipboard controls and recovery.

Explorar proyectos relacionados

Cargando…