python - Youtube Data API v3 get full watchHistory -
I tried to dump the clock history from YouTube, but playlistItems () List only 163 last video gives me:
{u'etag ': u' "F9iA7pnxqNgrkOutjQAa9F2k8HY / 6lMoi7x7VY9xj1dR34GM6rOPfMM" ', u'items': [], u 'kind': u'youtube # of playlistItemListResponse ',' pageinfo ': {u' I have more than 163 videos I in
try to use I 'Pejtokn ultimate and try Pejagag with , But playlist easelist response is still limited to 163 items.
Is there a way to get complete history? Another way to do pagegate or something else?
The best option for me now is a selenium-based script with user action emulation =)
I am using the revised "retrieve your upload" Example: < / p>
# Eighth here youtube = build (YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION, Http = credentials.authorize (httplib2.Http ())) channels_response = youtube.channels () . List (my = true, part = "content description"). Channel to channel ( "Item"): execlute (): history_list_id Playlistitems_list_request: playlistitems_list_response = playlistitems_list_request.execute (channel) [ "content description"] [ "Watch History"] [ "watch history"] playlistitems_list_request = youtube.playlistItems (). List (playlistId = history_list_id, part = "snippet", maxResults = 50)) "Playlist_item_list_list [playlist_item]": title = playlist_item [ "snippet"] [ "title"] video_id = playlist_item [ "snippet"] [ "resourceId"] ["Video ID"] Print "% s (% s)"% (title, video_id) playlist item_list_it = youtube.playlistItems (). List_next (playlistitems_list_request, playlistitems_list_response)
I thought the behavior of some type of bug :
Comments
Post a Comment