A user-friendly tool for easily accessing and watching live streams, videos, and clips from Twitch, it presents a menu interface for seamless browsing and streaming.
- Player:
- ⭐ mpv (default)
- streamlink
- Launcher:
For authentication, you can set environment vars in your shell
or use the
.env
file and put it in the root of the project.
env-template file
# Twitch credentials
TWITCH_CLIENT_ID="xxxxx"
TWITCH_ACCESS_TOKEN="xxx"
TWITCH_USER_ID="123456"
- Twitch token generator
- Scope:
user:read:follows
- Scope:
- Twitch Channel ID and User ID Converter
# Clone repository
$ git clone "https://github.com/haaag/pytwitch.git"
$ cd pytwitch
# Create virtual environment & source
$ python -m venv .venv
$ source .venv/bin/activate
# Install requirements
(.venv) $ pip install -r requirements.txt
# Install
(.venv) $ pip install .
After installation you can use the command pytwitch
# Use rofi menu by default
(.venv) $ pytwitch
# You can use it with dmenu or rofi
(.venv) $ pytwitch -m dmenu
# or
(.venv) $ pytwitch --menu=fzf
# Help
(.venv) $ pytwitch --help
-
Create/Update requirements/dependencies
-
Complete Usage
-
Update screenshots
-
Better logging
-
Finish tests
-
Update GIFs
-
Update
argparse
help- Display
keybinds
- Display