ytfeed

ytfeed is a dead simple command line tool to fetch and display a list of recent videos from a set of specified YouTube users and/or channels. It does not require account registration or any other complications -- place a list of YouTube users in a text file, and you're all set.

Here's how ytfeed works:

  1. You create a ~/.ytfeedlist file with a list of users and channels you care about.
  2. You run ytfeed, and it prints the latest 15 videos belonging to those channels.

Why only 15? That's because YouTube APIs only give you 15 latest videos per channel. To obrain more you need to use other APIs that require registration and API key management. Ain't nobody got time for that.

How to

Make sure you have Python 2.7+ or 3.2+ installed; obtain ytfeed sources at [1], or directly via mercurial like this:

hg clone http://hg.tx97.net/ytfeed

Create ~/.ytfeedlist file. For each user you want to track, add a line that says user/<username>; for each channel add channels/<channelid>. You may leave blank lines and add comments beginning with # (particulary useful to track the names that correspond to channel IDs, which are otherwise random strings).

You can now run ytfeed script.

Example

$ touch ~/.ytfeedlist
$ echo user/vihart                      >> ~/.ytfeedlist
$ echo user/bunnyhopshow                >> ~/.ytfeedlist
$ echo channel/UCjFqcJQXGZ6T6sxyFB-5i6A >> ~/.ytfeedlist
$ echo channel/UCyhnYIvIKK_--PiJXCMKxQQ >> ~/.ytfeedlist
$ ytfeed | tail -26
* Joel & Ethan Coen - Shot | Reverse Shot
  Every Frame a Painting == 31 day ago == https://www.youtube.com/watch?v=5UE3jz_O_EM

* Should You Play: Factorio
  Joseph Anderson == 30 days ago == https://www.youtube.com/watch?v=rtT_Qc5DIEg

* Review: Far Cry Primal
  Super Bunnyhop == 23 days ago == https://www.youtube.com/watch?v=WKDhuFliFB8

* Dragon's Dogma
  Joseph Anderson == 18 days ago == https://www.youtube.com/watch?v=T2BNxpYz9rk

* The First Levels of Sonic Games
  Super Bunnyhop == 16 days ago == https://www.youtube.com/watch?v=-kE9BR24XIw

* This Pi Day is Round
  Vihart == 13 days ago == https://www.youtube.com/watch?v=vydPOjRVcSg

* Examining the FBI's Counter-Terrorism Game
  Super Bunnyhop == 10 days ago == https://www.youtube.com/watch?v=RYh7T_koNFg

* Stardew Valley Review
  Joseph Anderson == 3 days ago == https://www.youtube.com/watch?v=BbEHrOAShnE

* Review: Salt & Sanctuary
  Super Bunnyhop == 3 days ago == https://www.youtube.com/watch?v=EyDuRUiNqgI

References

  1. http://hg.tx97.net/ytfeed