开发者

GBase Snippets Feed, how do I extract the URL?

In this example http://code.google.com/apis/base/docs/1.0/pythondevguide.html (search for entry.title.text) it gives entry.title.text as the only example for a Snippets feed attribute. What do I put there to get the URL? I was able to find entry.link but it only gives 开发者_JAVA百科me [<atom.Link object at 0x020E6E90>, <atom.Link object at 0x020E6EF0>]

What's the 3rd part of the puzzle?


You can get the URL from the link's href attribute:

for link in entry.link:
    print link.href
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜