开发者

GBase Snippets Feed, how do I extract the URL?

开发者 https://www.devze.com 2023-02-18 03:46 出处:网络
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 t

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

精彩评论

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