Getting the latest YouTube video on a channel is very easy with yt-dlp. This is a neat trick.
(jcartwright@localhost) 192.168.1.5 Videos $ yt-dlp --skip-download --dump-single-json --no-check-certificate --restrict-filenames --ignore-no-formats-error --no-warnings https://www.youtube.com/feeds/videos.xml?channel_id=UCqeMhi4AW6tL1Vr2axwv-mg | jq -r '.fulltitle'
Which FACE 🥵 are you PULLING? #worldsstrongestman #deadlift #faces
Use this to read from the Youtube RSS feed, this will retrieve the latest video from the RSS.
(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 ~ $ yt-dlp --skip-download --dump-single-json --no-check-certificate --restrict-filenames --ignore-no-formats-error --no-warnings https://www.youtube.com/feeds/videos.xml?channel_id=UCqeMhi4AW6tL1Vr2axwv-mg | jq -r '.fulltitle'
Mitchell Hooper | 170kg, 186kg, 200kg & 210kg Log Presses
This is how to get the video description as well as the name of the video.
(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 ~ $ yt-dlp --skip-download --dump-single-json --no-check-certificate --restrict-filenames --ignore-no-formats-error --no-warnings https://www.youtube.com/feeds/videos.xml?channel_id=UCqeMhi4AW6tL1Vr2axwv-mg | jq -r '.fulltitle,.description'
Mitchell Hooper | 170kg, 186kg, 200kg & 210kg Log Presses
The World Tour Finals 2023 | Glasgow, Scotland...
Event 1 | Max Log Press
Mitchell Hooper, Tom Stoltman, Iron Biby, Luke Stoltman, Mathew Ragg, Tyler Cotton and more of the world's best strongmen battled it out in this mammoth overhead event, and the reigning World's Strongest Man found himself in this nail-biting position as he attempted the top weight!
#strongman
#giantslive
#worldsstrongestman
#deadlift
#strongmancompetition
#wsm
This is another example. This does work very well.
(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 ~ $ yt-dlp --skip-download --dump-single-json --no-check-certificate --restrict-filenames --ignore-no-formats-error --no-warnings https://www.youtube.com/feeds/videos.xml?channel_id=UCrB8o1tlLKRnPHlpSy3GBFg | jq -r '.fulltitle,.description'
How to Meditate
Regular Donations: https://streamelements.com/bhdonos/tip
Special Donations: https://streamelements.com/bhdonos_special/tip
Website: https://www.BuddhismHotline.org/
Discord: https://discord.com/invite/vs44Yc3FZ8
This is a very useful yt-dlp trick to find the latest video from a channel. To get the RSS feed, go to the channel page in Firefox and view source. Press Control-F and search for RSS to find the feed URL.