carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

Youtube Insight data (v2) #314

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I cannot access the youtube insight link. (using the v2 branch and using
the latest release)

{{{
yt_service = gdata.youtube.service.YouTubeService()
yt_service.email = ...
yt_service.password = ...
yt_service.source = ...
yt_service.ProgrammaticLogin()
entry = yt_service.GetYouTubeVideoEntry(video_id=[videoid])
for link in data_links:
    if "insight.views" in link.rel:
        print "Insight Link found"
}}}

I found a work around is to provide the parameter as part of the videoid
parameter - but obviously this is a hack and in-built support would be great.

i.e.
entry = yt_service.GetYouTubeVideoEntry(video_id="[videoid]&v=2")

returns a link correctly.

Original issue reported on code.google.com by timwin...@gmail.com on 1 Dec 2009 at 11:11

GoogleCodeExporter commented 9 years ago

Original comment by fahmikam...@gmail.com on 11 Dec 2009 at 12:12

Attachments:

GoogleCodeExporter commented 9 years ago
Unfortunately this hack no longer works for the current release of python gdata.

Original comment by kieran.f...@gmail.com on 25 Oct 2010 at 10:56

GoogleCodeExporter commented 9 years ago
I've got it working using 

yt.GetYouTubeVideoEntry(video_id="[videoid]?v=2")

For version 2.0.12 (current release)

Original comment by timwin...@gmail.com on 27 Oct 2010 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 11:40

GoogleCodeExporter commented 9 years ago
What's data_links?

Original comment by blueshie...@gmail.com on 13 Oct 2012 at 7:35