Python:在youtube上搜索播放列表

Python:在youtube上搜索播放列表,python,gdata-python-client,Python,Gdata Python Client,有没有办法使用gdata python客户端在youtube上搜索播放列表?至于文档,这是不可能的,但可能有一些解决方法…YouTube python API似乎有一种搜索与特定术语匹配的播放列表的方法。 根据文档,API能够检索与用户指定搜索词匹配的播放列表列表 [编辑:卷曲输出] 我刚刚使用了curl,API似乎工作得很好 ~ $ curl 'http://gdata.youtube.com/feeds/api/playlists/snippets?q=soccer&start

有没有办法使用gdata python客户端在youtube上搜索播放列表?至于文档,这是不可能的,但可能有一些解决方法…

YouTube python API似乎有一种搜索与特定术语匹配的播放列表的方法。 根据文档,API能够检索与用户指定搜索词匹配的播放列表列表

[编辑:卷曲输出]

我刚刚使用了curl,API似乎工作得很好

~ $ curl 'http://gdata.youtube.com/feeds/api/playlists/snippets?q=soccer&start-index=11&max-results=10&v=2'
输出:

<?xml 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/&quot;C0cHRX85eCp7ImA9Wx5VEko.&quot;'><id>tag:youtube.com,2008:playlists:snippets</id><updated>2010-10-05T09:30:34.120Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#playlistLink'/><title>YouTube Playlists matching query: soccer</title><logo>http://www.youtube.com/img/pic_youtubelogo_123x63.gif</logo><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/playlists/snippets?v=2'/><link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/playlists/snippets/batch?v=2'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/playlists/snippets?q=soccer&amp;start-index=11&amp;max-results=10&amp;v=2'/><link rel='service' type='application/atomsvc+xml' href='http://gdata.youtube.com/feeds/api/playlists/snippets?alt=atom-service&amp;v=2'/><link rel='previous' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/playlists/snippets?q=soccer&amp;start-index=1&amp;max-results=10&amp;v=2'/><link rel='next' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/playlists/snippets?q=soccer&amp;start-index=21&amp;max-results=10&amp;v=2'/><author><name>YouTube</name><uri>http://www.youtube.com/</uri></author><generator version='2.0' uri='http://gdata.youtube.com/'>YouTube data API</generator><openSearch:totalResults>1241773</openSearch:totalResults><openSearch:startIndex>11</openSearch:startIndex><openSearch:itemsPerPage>10</openSearch:itemsPerPage></feed>~ $ 
tag:youtube.com,2008:playlists:snippets2010-10-05T09:30:34.120ZYouTube播放列表匹配查询:soccerhttp://www.youtube.com/img/pic_youtubelogo_123x63.gifYouTubehttp://www.youtube.com/YouTube 数据API12417731110~$

这不是特定于python的API,而是通用的API。顺便说一句-空提要,我哪里错了?@Vladimir:我使用了curl命令,它似乎可以获取信息。你可以通过浏览器以相同的结果打开它,但除了totalResults之外,没有播放列表条目,也没有对它的任何引用……今天刚刚检查了你的链接,它就工作了。所以这似乎是youtube的问题。谢谢。