Uses the YouTube Data Web API to check the recent activities of channels to display a list of new videos.
Modify seenFileName
to a path you like, set your YouTube key in youTubeKey
(like AIzaSy...
)
and change the returned string array of the GetYouTubeChannelsToCheck()
function.
To extract the Channel ID from channels like this https://www.youtube.com/user/vsauce where the URL does not contain the ID, this website can be used: https://commentpicker.com/youtube-channel-id.php or this can be followed: https://stackoverflow.com/a/51016875/6908755
The file specified by seenFileName
contains the seen videos in this format:
Medical Medium|The Medical Medium Answering Your Food & Health Questions
Medical Medium|Why Celery Juice Is Healing Millions
...
Running this produces an output like this and only lists new videos:
Medical Medium https://www.youtube.com/channel/UCUORv_qpgmg8N5plVqlYjXg
- The Medical Medium Answering Your Food & Health Questions
- Why Celery Juice Is Healing Millions
It uses the https://www.googleapis.com/youtube/v3/activities API call which returns just the last 5 videos, but more are really not needed.
As a note, running this fresh always displays all videos as new because seen-youtube.txt
is not filled yet.