[英]How can I get an direct Instagram link from a twitter entity?
我有一個Twitter提要,我可以在推文中找到Instagram網址。
{
indices: [
90,
110
],
url: "http://t.co/kF9EXifn",
expanded_url: "http://instagr.am/p/QC8hWKL_4K/",
display_url: "instagr.am/p/QC8hWKL_4K/"
}
the image itself, not the image on the Instagram site. 我需要的是從該對象獲取擴展的URL“http://instagr.am/p/QC8hWKL_4K/”,並獲得是圖像本身的鏈接,而不是Instagram網站上的圖像。 誰知道怎么做? 我甚至可以從網址中獲取該鏈接嗎?
您可以通過將/media/
附加到URL來獲取圖像。 使用您的示例: http : //instagr.am/p/QC8hWKL_4K/media/ 。
你甚至可以指定一個大小,
t(縮略圖),m(中),l(大)中的一個。 默認為m。
所以對於縮略圖: http : //instagr.am/p/QC8hWKL_4K/media/?size = t
文檔在這里 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.