- Get API credentials.
- Fill out
resources.ini. - Run
launch.py.
Firstly download this (as a .zip) and extract it, place that folder somewhere on your PC where you can find it - this is now called your working directory
Head to Twitch Developer Console to register your application and obtain API credentials.
As the OAuth Redirect URL, you can use http://localhost.
during this you will get your client_id and client_secret (its called secret because its intended to be kept secret) - make sure to copy both of these
Make changes to the resources.ini file to fit your needs. Add the client_id and client_secret (required for fetching clips). Ensure the directory paths follow the format C:/Users/.... (use Forward Slash)
In OBS, add a 'Browser Source'. Use the URL http://localhost:8000/ or the port specified in resources.ini.
Run launch.py to install dependencies and launch the application. After the initial setup, you can run clips_server.py directly. You can also configure OBS to launch the Python script automatically, or run it manually.
If clips fail to download, ensure twitch-dl is working properly:
-
Navigate to your working directory using
cd C:/Users/...(replace with the actual path). -
Activate the virtual environment by running:
.venv\Scripts\activate -
Locate
twitch-dlusing:where twitch-dlThis will print the path to the executable. Only the directory matters.
-
Set a PATH variable using:
setx PATH "directory_of_twitch-dl"Replace
directory_of_twitch-dlwith the actual directory containing thetwitch-dl.exefile.
- Ensure all paths in
resources.iniuse the correct format (C:/Users/...). - Verify that OBS is configured correctly with the browser source URL.


