Skip to content

Create a CSV file with all the YouTube videos from a channel between dates

License

Notifications You must be signed in to change notification settings

chesshacker/youtube-video-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9dd0831 · Feb 15, 2024

History

11 Commits
Feb 15, 2024
Feb 14, 2024
Feb 15, 2024
Feb 14, 2024
Feb 14, 2024
Jan 2, 2020
Feb 14, 2024
Jan 2, 2020
Feb 14, 2024
Feb 14, 2024
Feb 15, 2024
Jan 4, 2023
Jan 2, 2020
Jan 4, 2023

Repository files navigation

YouTube Video List

After a big conference like AWS re:Invent, there are literally hundreds of videos available for all the sessions. While it would be great to watch all the videos, I just don't have that much time. To help find the most interesting videos and track my progress, I like to make a spreadsheet of the videos. This tool creates a list of all the videos, including their title, view count and a link to view the video.

To run this program, you will need the following:

  • YouTube Data API Key - See the YouTube Data API Overview for more information on creating an API Key.
  • YouTube Channel ID - See Understanding your channel URLs to learn more about Channel IDs. For example, the AWS Events Channel ID is UCdoadna9HFHsxXWhafhNvKw.
  • Optionally, a range of dates you are interested in limiting results to. At this time, it appears re:Invent 2019 videos were posted between December 3 and December 26.

Before running, you need to the environment variable YOUTUBE_APIKEY to your YouTube Data API Key.

Then you can build and run the program:

make
./youtube-video-list \
  -channel UCdoadna9HFHsxXWhafhNvKw \
  -after 2019-12-01T00:00:00Z \
  -before 2019-12-28T00:00:00Z

Note that this program runs each request to YouTube Data API in series, and runs two queries for every 50 videos. If your query returns a lot of videos, it could take a minute or two to return.

I wrote a Python version of this program. You can run:

pip install -r requirements.txt
python youtube-video-list.py \
  --channel UCdoadna9HFHsxXWhafhNvKw \
  --after 2019-12-01T00:00:00Z \
  --before 2019-12-28T00:00:00Z

About

Create a CSV file with all the YouTube videos from a channel between dates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published