Friday, January 6, 2012

[YouTube-API] Re: Related Video

Hello Mona,

It look like you're writing code using the Python client library.

There's an example in the Python developer's guide of how you could
iterate over a feed of videos and display information about each one:

http://code.google.com/apis/youtube/1.0/developers_guide_python.html#VideoFeed

In your case, you'd only want to print out entry.media.title.text for
each entry in the feed.

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Dec 30 2011, 5:19 pm, Mona Jalal <mona66ja...@gmail.com> wrote:
> Hi,
>
> Do you know how can I get the title of related videos rather than lots
> of unnecessary information when I write:
> related_feed = yt.GetYouTubeRelatedVideoFeed(video_id='1G4isv_Fylg')
> print related_feed
>
> Also I just want to save the title of first 15 related movies and I
> don't know which attributes I should use for this purpose.
>
> Thanks for your help.

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment