Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API getting Watch Later Playlist

as in one answer here:
Youtube Data API v3 PlaylistItems update not working for Watch Later playlists

There was a change that I can't use playlistitems.list from YT API v3 to retrive Watch Later and Watch History playlists from my channel:
https://developers.google.com/youtube/v3/revision_history#september-15-2016

TLDR:

"Requests to retrieve playlist details (playlists.list) for a channel's watch history or watch later playlist will return an empty list after September 12, 2016. Requests to retrieve playlist items (playlistItems.list) in either of those playlists will also return an empty list after that time. This is true for the new values, HL and WL, as well as for any watch history or watch later playlist IDs that your API Client may have already stored."

Is there any other way to programmatically get my Watch Later playlist other than manual scraping?
(By manual scraping I mean traversing http to login, getting into my playlist and manually parsing DOM to get links and snippets of videos in the list.)

Thanks

like image 593
Jacob Avatar asked Jan 03 '17 20:01

Jacob


Video Answer


1 Answers

(Copied from here: https://stackoverflow.com/a/47117301/147507)

If I was in your position, I'd just work my requirement around it, avoiding this. You can go back to v2 or do some other stuff like scraping the website, but if the YouTube API is explicitly preventing these to be available to third parties, it might seem you could get into legal trouble.

like image 137
Alpha Avatar answered Oct 05 '22 16:10

Alpha