5 ms·
I slapped together a really quick script to get oldest videos via Youtube API. It goes through all the videos from a playlist ID and then writes them to a html
by ffwd 4y ago
I slapped together a really quick script to get oldest videos via Youtube API.
It goes through all the videos from a playlist ID and then writes them to a html file with oldest first. Looks like this: https://i.imgur.com/ZxCgnBY.png https://i.imgur.com/ZxCgnBY.png
Not perfect but works ok
https://github.com/n0x5/scripts/blob/master/youtube_api_uploads_oldest.py https://github.com/n0x5/scripts/blob/master/youtube_api_uplo...
Need an API key and also the Uploads playlist ID from the channel which can use this script to get: https://github.com/n0x5/scripts/blob/master/youtube_get_uploads_id.py https://github.com/n0x5/scripts/blob/master/youtube_get_uplo...
It's a little convoluted I might implement get uploads id right into the script but the issue is it doesn't always return the correct channel when searching by name, in which case one has to manually go through the results and find the right channel id which would take longer to code to actually work all the time.
- swyx 4y agosuggest sticking that into a replit so that people can easily run/fork on the web :)