친구의 채널에서 업로드 된 Recents 비디오를 검색하는 방법은 무엇입니까?

StackOverflow https://stackoverflow.com/questions/19855530

  •  29-07-2022
  •  | 
  •  

문제

이론적으로 이것은 내가 필요한 API입니다.

https://developers.google.com/youtube/2.0/developers_guide_protocol_subscriptions#Retrieving_new_subscription_videos

사실, 내가 클릭하면 https://www.youtube.com/my_subscriptions 최근 비디오가 친구 (구독)가 업로드 한 것을 볼 수 있습니다.

그러나 그 엔드 포인트 (alt = json)라고 부릅니다.

{
    "version": "1.0",
    "encoding": "UTF-8",
    "feed": {
        "xmlns": "http://www.w3.org/2005/Atom",
        "xmlns$openSearch": "http://a9.com/-/spec/opensearch/1.1/",
        "xmlns$gd": "http://schemas.google.com/g/2005",
        "gd$etag": "W/\"CEIMSHwyfSp7I2A9Wh5QGU0.\"",
        "id": {
            "$t": "tag:youtube.com,2008:user:ysWGKld9kilWfiqcfr1pfQ:newsubscriptionvideos"
        },
        "updated": {
            "$t": "2013-11-08T01:23:09.295-08:00"
        },
        "category": [
            {
                "scheme": "http://schemas.google.com/g/2005#kind",
                "term": "http://gdata.youtube.com/schemas/2007#video"
            }
        ],
        "title": {
            "$t": "New Subscription Videos for Mauro Vicentini"
        },
        "logo": {
            "$t": "http://www.gstatic.com/youtube/img/logo.png"
        },
        "link": [
            {
                "rel": "alternate",
                "type": "text/html",
                "href": "https://www.youtube.com/subscription_center"
            },
            {
                "rel": "http://schemas.google.com/g/2005#feed",
                "type": "application/atom+xml",
                "href": "https://gdata.youtube.com/feeds/api/users/ysWGKld9kilWfiqcfr1pfQ/newsubscriptionvideos"
            },
            {
                "rel": "http://schemas.google.com/g/2005#batch",
                "type": "application/atom+xml",
                "href": "https://gdata.youtube.com/feeds/api/users/ysWGKld9kilWfiqcfr1pfQ/newsubscriptionvideos/batch"
            },
            {
                "rel": "self",
                "type": "application/atom+xml",
                "href": "https://gdata.youtube.com/feeds/api/users/ysWGKld9kilWfiqcfr1pfQ/newsubscriptionvideos?alt=json&start-index=1&max-results=25"
            },
            {
                "rel": "service",
                "type": "application/atomsvc+xml",
                "href": "https://gdata.youtube.com/feeds/api/users/ysWGKld9kilWfiqcfr1pfQ/newsubscriptionvideos?alt=atom-service"
            }
        ],
        "author": [
            {
                "name": {
                    "$t": "YouTube"
                },
                "uri": {
                    "$t": "http://www.youtube.com/"
                }
            }
        ],
        "generator": {
            "$t": "YouTube data API",
            "version": "2.1",
            "uri": "http://gdata.youtube.com"
        },
        "openSearch$totalResults": {
            "$t": 0
        },
        "openSearch$startIndex": {
            "$t": 1
        },
        "openSearch$itemsPerPage": {
            "$t": 25
        }
    }
}

실제로 "비디오"피드가없는 곳.

내가 어디에 틀렸어?

도움이 되었습니까?

해결책

아마도 이런 것

https://gdata.youtube.com/feeds/api/users/;userid뉴/subscriptions?v=2&alt=json 또는 https://gdata.youtube.com/feeds/api/users/=USERID 개발? v = 2 & alt = json

찾을 수있는 YouTube userID를 추가하는 것을 잊지 마십시오.

https://www.youtube.com/account_advanced

이제 다른 사람 구독을 표시하고 싶지만 userId를 알지 못하면 맹세 2.0을 사용하여 인증했을 수 있습니다.

아니면 그냥 가십시오

https://gdata.youtube.com/feeds/api/users/;youtube_username ]/newsubscriptionvideos?v=2&alt=json

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top