Gets matching timestamps for multiple streamers from a single twitch clip or timestamp.
Project description
TwitchSync
Syncs twitch clips with other streamers.
Input a twitch clip url, slug, or vod timestamp with a list of streamers, and the program will output a list of timestamped urls for the same moment in each streamer's vod.
$ python -m twitchsync https://www.twitch.tv/thebigmeech/clip/AgreeableNurturingFishPanicVis-g_-jghN2s5rElLpo sgtapollo lisajfc thebigmeech
sgtapollo: https://www.twitch.tv/videos/2448466929?t=2h20m44s
lisajfc: https://www.twitch.tv/videos/2448318187?t=6h0m38s
thebigmeech: https://www.twitch.tv/videos/2448294467?t=6h42m42s
Supported input formats:
- Clip URL:
https://www.twitch.tv/thebigmeech/clip/AgreeableNurturingFishPanicVis-g_-jghN2s5rElLpo - Clip slug:
AgreeableNurturingFishPanicVis-g_-jghN2s5rElLpo - Timestamped vod URL:
https://www.twitch.tv/videos/2448294467?t=6h42m42s
Installation
pip install twitchsync
Requires a twitch developer application code.
To get one log into the twitch developer with your twitch account https://dev.twitch.tv/console Then regester a new application, with category Application Integration and Confidential client type.
Then once it is created click Manage -> New Secret and generate a new secret. Save this secret and the Client ID in a text file somewhere you will find them. Redirect url is not relevant, you can fill it out to your website, or this github page, etc.
The program will ask for these 2 tokens on the first run.
Now the program can be run with:
python -m twitchsync clip_url/slug/vod_timestamp_url streamer1 streamer2 streamer3
or simply
twitchsync clip_url/slug/vod_timestamp_url streamer1 streamer2 streamer3
Setting environment variables
This section is optional to have credentials be auto-detected on first run rather than manually enter them in the CLI.
(On Windows: Search->"Edit Environment Variables For Your Account"->New...)
(On Mac/Linux run export TWITCHSYNC_ID=your client id && export TWITCHSYNC_SECRET=your client secret)
TWITCHSYNC_ID=your client id
TWITCHSYNC_SECRET=your client secret
The environment variables do not need to be persistent, the credentials will be saved automatically and managed as necessary from now on.
Now it can be run like this python -m twitchsync clip_url/slug/vod_timestamp streamer1 streamer2 streamer3
or simply
twitchsync clip_url/slug/vod_timestamp_url streamer1 streamer2 streamer3
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twitchsync-2.1.1.tar.gz.
File metadata
- Download URL: twitchsync-2.1.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb810dbbe6f8b4c3b29aa7b77664f572a62e7d50dec5f7f919b2d259e868c359
|
|
| MD5 |
38da954862d68233455ea21f92cf6e17
|
|
| BLAKE2b-256 |
e74e996b3bd68e41212c329617c73d16c1aedabe0618af41c76df958e7e5e216
|
File details
Details for the file twitchsync-2.1.1-py3-none-any.whl.
File metadata
- Download URL: twitchsync-2.1.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca309234947d10453ebb502192fd1e8d0e3d972d1f4d13784466fda786732c9c
|
|
| MD5 |
939b91b2de11187ea9d5d8c1e20fc54d
|
|
| BLAKE2b-256 |
949030c2656b73ab27a468350684d8c90e4f39d1ad357c783a945b65d4fab9c8
|