6

我在类似 facebook 的社交网络上工作,需要从 Instagram 链接中提取 mp4。

照片很简单: url_shared = " http://instagram.com/p/a69ygTTHKq/ " photo_to_embed = url_shared+"?size=t"

你知道类似的东西来找到指向 mp4 的直接链接吗?我尝试使用他们的 API 并将扩展名从“.jpg”更改为“.mp4”但失败了,因为它不能一直工作。

例如: http ://api.instagram.com/oembed?url=http://instagram.com/p/bCgbJ2pgCi/返回 { provider_url: "http://instagram.com/", media_id: "487094313204187298_9762431", title: "So did you download our "Hockey Community" app yet? If you like hockey even just a bit you should do it now!!'", url: "http://distilleryimage2.ak.instagram.com/d79af376deb011e2922a22000a1fdc29_7.jpg", author_name: "hockeycommunity", height: 612, width: 612, version: "1.0", author_url: "http://instagram.com/hockeycommunity", author_id: 9762431, type: "photo", provider_name: "Instagram" }

data.url = " http://distilleryimage2.ak.instagram.com/d79af376deb011e2922a22000a1fdc29_ 7.jpg " 视频链接实际上是 " http://distilleryimage2.ak.instagram.com/d79af376deb011e2922a22000a1fdc29_ 101.mp4 "

只有文件名的结尾发生了变化,但无法弄清楚规则是什么......

资源:

4

0 回答 0