There is an easy way to print out a list of a YouTube channel`s latest video uploads with the command line. This involves curl and grep. This is a very neat trick.
Below is an example of this in action. Get the Youtube channel-id by viewing the HTML source of the channel page and looking for the feed URL. Just press Control-F and then search for this URL.
┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ curl -s https://www.youtube.com/feeds/videos.xml?channel_id=UChkws8rD7PNNITF17q1wOCw | grep "<title>" | sed -e 's/<[^>]*>//g' Linux TV Ubuntu 20.04 LTS Review | Is This The Best Ubuntu Yet?! Should You Use it? Find Out! 3 Best Linux Distros To Try if You Don't Like The GNOME Desktop Ubuntu Complete Beginner's Guide: Customizing The Desktop Ubuntu Complete Beginner's Guide: How To Install, Remove, and Update New Apps Ubuntu Complete Beginner's Guide: The System Settings Ubuntu Complete Beginner's Guide: Files & Folders Ubuntu Complete Beginner's Guide: Getting To Know The Desktop Ubuntu Complete Beginner's Guide: Download & Installing Ubuntu How To Try New Linux Distros Without Installing Them On Your PC 2020 Exciting News Update For This Channel! How To Play Windows Games On Linux (AAA Gaming On Any Linux Distro, Finally!) Ubuntu 19.10 Review | The Best GNOME Desktop, Yet? Fedora 31 Review | Should You Use It? Find Out! Complete Linux Mint Tutorial: Getting To Know The Default Applications Complete Linux Mint Tutorial: Customizing The Desktop |
But this is a very nice and effective way to list the newest uploads in the terminal.
This is how to list the URL as well as the upload titles.
┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ curl -s https://www.youtube.com/feeds/videos.xml?channel_id=UChkws8rD7PNNITF17q1wOCw | grep -E "<title>|<uri>" | sed -e 's/<[^>]*>/\t/g' Linux TV https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu 20.04 LTS Review | Is This The Best Ubuntu Yet?! Should You Use it? Find Out! https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw 3 Best Linux Distros To Try if You Don't Like The GNOME Desktop https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu Complete Beginner's Guide: Customizing The Desktop https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu Complete Beginner's Guide: How To Install, Remove, and Update New Apps https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu Complete Beginner's Guide: The System Settings https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu Complete Beginner's Guide: Files & Folders https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu Complete Beginner's Guide: Getting To Know The Desktop https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu Complete Beginner's Guide: Download & Installing Ubuntu https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw How To Try New Linux Distros Without Installing Them On Your PC https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw 2020 Exciting News Update For This Channel! https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw How To Play Windows Games On Linux (AAA Gaming On Any Linux Distro, Finally!) https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Ubuntu 19.10 Review | The Best GNOME Desktop, Yet? https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Fedora 31 Review | Should You Use It? Find Out! https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Complete Linux Mint Tutorial: Getting To Know The Default Applications https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw Complete Linux Mint Tutorial: Customizing The Desktop https://www.youtube.com/channel/UChkws8rD7PNNITF17q1wOCw |
Using grep this way: grep -E "
allows the user to search for 2 strings at once.