如何从 Picasa API 获取相册 URL?
我真的不喜欢 Picasa 面向提要的 API。为什么他们不能创建 REST 接口?
有谁知道如何获取特定专辑的 URL?例如,假设我有:
gd_client = gdata.photos.service.PhotosService()
albums = gd_client.GetUserFeed(user="[email protected]")
album = albums.entry[0]
如何找到它的 URL?我正在寻找类似的东西:
http://picasaweb.google.com/username/AlbumTitle
这样当我点击它时,它会带我到 Picasa 查看该相册!
PS:请注意,您不能只将 album.title
放在那里,因为它可能包含空格,而且实际上并不相同。
I really don't like the Picasa feed-oriented API. Why couldn't they create a REST interface?
Does anyone know how I can get the URL for a particular album? For example, say I have:
gd_client = gdata.photos.service.PhotosService()
albums = gd_client.GetUserFeed(user="[email protected]")
album = albums.entry[0]
How can I find its URL? I am looking for something like:
http://picasaweb.google.com/username/AlbumTitle
so that when I click on it, it will take me to Picasa to view that album!
PS: Note that you cannot just put the album.title
there because it might contain spaces, and it's not really the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过在条目上调用
.GetHtmlLink().href
来访问相册的 picasaweb 网址you can access an album's picasaweb url through calling
.GetHtmlLink().href
on an entry转至
http://picasaweb.google.com/[用户名]/[相册标题]
获取相册网址。Get the album URL by going to
http://picasaweb.google.com/[username]/[album title]
.