Really basic code to upload a random thumbnail from Game Pending's YouTube channel to @game-pending-pics on cohost, @game-pending-pics@botsin.space on mastodon, and @GamePendingPics on twitter.
Needs a cohost cookie,
mastodon access token,
and a YouTube Data API key
to be set in keys.py
.
Also needs a bunch of twitter keys in there, god help you if you need to set this up yourself. I was only able to set this up because I had keys from an old project already set up years ago I wasn't using. You can't make a new project now thanks to fucking Elon Musk. I've heard 1st party API keys are floating around ripped from iOS/android apps but I don't know who I'd ask for help getting those.
You'll probably want to change the channel_id
, uploads_playlist
,
and cohost project
if you use this.