Posted: . At: 8:29 AM. This was 4 months ago. Post ID: 19011
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Get the latest YouTube video on a channel using yt-dlp.


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.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.