Twitch watcher
I spent two days watching Valorant streams to get a drop. I got bored...
Features
🎥 True HTTP Live Streaming support (Forget the #4000 error code)🔐 Cookie-based login📜 Auto accept cookie policy👨💻 The choice of a random streamer with drop-enabled tag🤐 Unmuted stream🛠 Detect mature content-based stream and interact with it🛡 Proxy option📽 Automatic lowest possible resolution settings🧰 Highly customizable codebase📦 Deployable to VPS by docker🏳️ Helpful support community💬 Multi language readme:🇫🇷 README🇧🇷 README🇷🇺 README🇸🇰 README
Requirements
Installation
Windows
- Login to your twitch account
- Open inspector(F12 or Ctrl+Shift+I) on main site
- Find the stored cookie section
- Copy auth-token
- Clone this repo
- Install Chromium
- Usually the path to the Chromium executable is: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
- Install the dependencies with
npm install
- Start the program with
npm start
Linux
- Login to your twitch account
- Open inspector(F12 or Ctrl+Shift+I) on main site
- Find the stored cookie section
- Copy auth-token
- Clone this repo
- Install Chromium: TUTORIAL
🤗 - Locate Chromium executable:
whereis chromium
orwhereis chromium-browser
- Install the dependencies with
npm install
- Start the program with
npm start
Docker
Docker is a set of platform as a service (PaaS) products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files. All containers are run by a single operating system kernel and therefore use fewer resources than virtual machines.
Requirements
Usage
- Download docker-compose-example.yml
- Rename docker-compose.yml
- Open and replace the token environment record
- Run with
docker-compose up -d
command
Dependencies
Troubleshooting
How does the token look like?
auth-token: rxk38rh5qtyw95fkvm7kgfceh4mh6u
Streamers.json is empty?
Try again with higher delay. Default delay:
const scrollDelay = 2000;
Something went wrong?
Try non-headless mode. Set headless value to true
, like this:
const showBrowser = true;
Proxy?
Yes, of course:
const proxy = ""; // "ip:port" By https://github.com/Jan710
OR
With Docker env:
proxy=PROXY_IP_ADDRESS:PROXY_PORT
Screenshot without non-headless mode
const browserScreenshot = false;
Donation
Please donate to keep alive this project!
Especially the drop farmers who gather tons of money with this software!
Support
- Keybase at https://keybase.io/d3v_
- Discord at https://discord.gg/s8AH4aZ
Disclaimer
This code is for educational and research purposes only. Do not attempt to violate the law with anything contained here. I will not be responsible for any illegal actions. Reproduction and copy is authorised, provided the source is acknowledged.