gpt4 book ai didi

api - YouTube API获得“稍后观看”播放列表

转载 作者:行者123 更新时间:2023-12-03 05:11:18 24 4
gpt4 key购买 nike

如这里的一个答案:
Youtube Data API v3 PlaylistItems update not working for Watch Later playlists

发生了更改,我无法使用YT API v3中的playlistitems.list从我的 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."



除了手动抓取之外,还有其他方法可以通过编程方式获取“稍后观看”播放列表吗?
(通过手动抓取,我的意思是遍历http登录,进入我的播放列表并手动解析DOM以获取列表中视频的链接和摘录。)

谢谢

最佳答案

(从此处复制: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.

关于api - YouTube API获得“稍后观看”播放列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41451533/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com