【发布时间】:2012-10-01 22:31:11
【问题描述】:
我有一个推特供稿,我可以在推文中找到 Instagram 网址。
{
indices: [
90,
110
],
url: "http://t.co/kF9EXifn",
expanded_url: "http://instagr.am/p/QC8hWKL_4K/",
display_url: "instagr.am/p/QC8hWKL_4K/"
}
我需要的是从该对象“http://instagr.am/p/QC8hWKL_4K/”获取扩展的 url,并获取指向 just 图像本身的链接,而不是图像Instagram 网站。有谁知道该怎么做?我什至可以从 url 派生那个链接吗?
【问题讨论】:
-
您可能可以通过使用 Instagram API 获得它:instagram.com/developer
-
查看这部分 API,instagram.com/developer/endpoints/media 展开示例响应并查找
image属性 -
使用 Instagram api 需要另外(未指定)数量的服务调用。我希望从我提供的 url 中导出图像的 url。
-
另外我只需要图片本身,不需要元数据。
标签: php javascript instagram