例如,我有一个this link,是否可以从它获得一个这样的链接:https://instagram.com/p/5PiBAQOwBt/?
发布于 2015-08-14 22:38:38
从https://instagram.com/p/5PiBAQOwBt/,你可以从source code of page获取图片链接:
<meta property="og:image" content="https://igcdn-photos-f-a.akamaihd.net/hphotos-ak-xpt1/t51.2885-15/10005419_943595429032221_1267327891_n.jpg" />
但是,如果你只有图片链接,只有图片搜索谷歌(等)。帮助查找canonical url。
在Instagram API中,使用media endpoint获取这两个链接。
https://stackoverflow.com/questions/31946102
复制相似问题