Skip to main content
100%

Gist af4d272b0b59fb00bf383b183eb0cc52

✓ Published0🌍 Public
CConorAspell
Last edited Aug 18, 2020
Created on Aug 18, 2020

This example shows an automated pipeline that fetches and reposts top Twitch clips to a subreddit, using a Streamable link as the video source. The code uploads a local video file to Streamable via the `pystreamable` API, polls until the upload reaches 100% processing, and then submits the resulting URL as a Reddit post titled "Top Twitch Clips for This Week." It relies on the `praw` library for Reddit interactions, `requests` and `json` for API calls, `datetime` for timestamps, and `fake_useragent` to rotate user-agent strings. Environment variables supply all credentials, and the script exits if the upload does not complete within six polling attempts.

AI-generated description

Similar vizzes