Cườ*_*uốc 3 video image instagram
我需要从 instagram 帖子链接中抓取图像和视频(例如:https : //www.instagram.com/p/BZiTZWXABMp)。当使用python的正常请求时,我没有在html响应中接收到图像url。请帮我得到它。
非常简单,只需尝试在 Instagram 帖子链接的末尾添加 /media?size=l 即可。
https://www.instagram.com/p/BZiTZWXABMp/media/?size=l
Run Code Online (Sandbox Code Playgroud)
你可以检查这个网址:https://api.instagram.com/oembed/?url=<your-url>
返回一个json,你可以得到它的thumbnail_url属性
在您请求的帖子中,要查询的网址是:https
: //api.instagram.com/oembed/? url= https: //www.instagram.com/p/BZiTZWXABMp/在那里您可以获得图片网址: https: //instagram.fmad3-4.fna.fbcdn.net/t51.2885-15/s480x480/e35/21984643_995308220608235_7854693412774084608_n.jpg