如何从flickr URL获取静态图像URL? [英] How to get static image url from flickr URL?

查看:185
本文介绍了如何从flickr URL获取静态图像URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过api调用或某些脚本从flickr URL获取静态图像URL?
例如:
Flickr URL-> http://www.flickr .com/photos/53067560 @ N00/2658147888/in/set-72157606175084388/
静态图片网址-> http://farm4.static.flickr.com/3221 /2658147888_826edc8465.jpg

Is it possible to get static image URL from the flickr URL via an api call or some script ?
For eg :
Flickr URL -> http://www.flickr.com/photos/53067560@N00/2658147888/in/set-72157606175084388/
Static image URL -> http://farm4.static.flickr.com/3221/2658147888_826edc8465.jpg

推荐答案

在Flickr URL中,照片ID为2658147888.您使用

In your Flickr URL, the photo ID is 2658147888. You use flickr.photos.getSizes to get the various sizes of the photo available, and pick the url you want from that, depending on the size. There are several ways to access the API so please specify if you want more details for a particular language.

这篇关于如何从flickr URL获取静态图像URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆