gpt4 book ai didi

api - 如何从Instagram链接中找到mp4视频链接

转载 作者:行者123 更新时间:2023-11-28 21:40:57 30 4
gpt4 key购买 nike

我在一个类似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”

仅文件名的结尾发生更改,但无法弄清楚规则是什么...

资源:


http://instagram-engineering.tumblr.com/post/53880734833/moving-pictures-capturing-moments-with-video
http://instagram.com/developer/embedding/

最佳答案

关于api - 如何从Instagram链接中找到mp4视频链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17352820/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com