本文介绍了检索用户的 Youtube 观看历史记录的解决方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个方便的脚本,通过从列表中删除所有观看过的视频来管理我的一个播放列表.不幸的是,随着 2016 年 9 月 15 日对 API 的修订,用户的观看历史记录不再通过 API 提供(https://developers.google.com/youtube/v3/revision_history)

I wrote a handy script to manage one of my Playlists by removing any watched videos from the list. Unfortunately with the revision to the API on September 15, 2016, the user's watch history is no longer available via the API (https://developers.google.com/youtube/v3/revision_history)

还有其他方法可以实现此播放列表清理功能吗?

Is there another way I can achieve this Playlist-cleaning functionality?

例如,如果我无法获得用户的整个观看历史记录(这对我的用例来说是过度的),也许有一种方法可以查询特定的单个视频是否已被观看(或者甚至可能获得观看百分比或观看视频的分钟数,如视频缩略图下方的红色条显示)

For example, if I can't get a user's entire watch history (which is overkill for my use case anyway) maybe there's a way to query whether a specific single video has been watched (or maybe even get the watched percentage or watched minutes for a video, like the red bar under the video thumbnail shows)

推荐答案

我认为仍然有一个工作场所.您可以阅读 https://www.youtube.com/feed/history 的 HTML 内容但我不认为这种方式是一种好方式.

I think there is still one workground. You can read the HTML content of https://www.youtube.com/feed/historyBut I don't think this way is a good way.

这篇关于检索用户的 Youtube 观看历史记录的解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 03:08