Skip to main content

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 console with your twitch account https://dev.twitch.tv/console Then regester a new application, with category Application Integration and Confidential client type. Redirect url is not relevant, you can fill it out to your website, or this github page, etc.

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.

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

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

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

twitchsync-2.1.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twitchsync-2.1.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file twitchsync-2.1.2.tar.gz.

File metadata

  • Download URL: twitchsync-2.1.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for twitchsync-2.1.2.tar.gz
Algorithm Hash digest
SHA256 42cf83fdba4a79e52d378d92069c1eda0db1c2e5d187da2e53002760f8a6eb71
MD5 d06a3890265f4a9d926c250cfd35d0ac
BLAKE2b-256 a9f042c0140e0ecd4691a44682e441ebb16ad654e798b3d12a194c16be475824

See more details on using hashes here.

File details

Details for the file twitchsync-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: twitchsync-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for twitchsync-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23482a04b76ac6c983f9e3f61c9947013acf49d25384d1c949b2e4acb08144ad
MD5 5568b0f1c7f51be95174a1f1721a79f6
BLAKE2b-256 9c71b24521106bcbbc5da61a3787a365ec45ea254977b4a2081d44260c0a3205

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page