Youtube DataAPI 的publishedAt 属性给出了视频上传的日期,而不是公开的 [英] Youtube DataAPI's publishedAt property giving the date the video was uploaded, not gone public

查看:27
本文介绍了Youtube DataAPI 的publishedAt 属性给出了视频上传的日期,而不是公开的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去几天我一直在使用 Youtube API,现在我偶然发现了一个我无法解决的问题.

I've been working with Youtube API for the last couple days and now I stumbled upon a problem which I cannot solve.

我正在从频道窃取"视频并将一些数据插入我的 SQL 数据库中,问题是 PlaylistItems' 属性 publishedAt.

I'm 'leeching' videos off channels and inserting some data into my SQL database, The problem is PlaylistItems' property publishedAt.

它给了我视频上传的日期——正如你所知,有些频道在发布日期时将他们的视频保密——我只想要发布日期,因为它显示了普通用户.

It gives me the date of when the video was uploaded - as you know some channels keep their videos private upon release date - I want just the release date, as it shows ordinary users.

有什么办法可以得到吗?

Any way to get it?

推荐答案

最终我使用 Youtube API v2,因为为此使用 Youtube API v3 是一个全新的地狱.

Eventually I turned up using Youtube API v2, Because using Youtube API v3 for this was a fresh hell.

用法:http://gdata.youtube.com/feeds/api/users/ID/uploads或者如果你想要它在 JSON:http://gdata.youtube.com/feeds/api/users/ID/uploads?alt=jsonc&v=2

Usage: http://gdata.youtube.com/feeds/api/users/ID/uploads or if you want it in JSON: http://gdata.youtube.com/feeds/api/users/ID/uploads?alt=jsonc&v=2

文档:https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#User_Uploaded_Videos

:)

这篇关于Youtube DataAPI 的publishedAt 属性给出了视频上传的日期,而不是公开的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆