使用 Twitter API 从 Twitter 下载视频而不使用第三方库

Download video from Twitter using Twitter API without using thirdparty library

我正在尝试使用 Twitter API https://twitter.com/Google/status/1257326183101980673 从 Twitter 下载此视频。当我搜索扩展实体时,应该有媒体文件。但是,对于获取状态 API 中提到的 link,扩展实体在响应中不可用。

这是 /statuses/show 的回复。json - https://textuploader.com/18p95

谁能帮我解决这个问题?

提前致谢。

对于大型推文文本,扩展实体将被隐藏它似乎看到了所有参数,包括 media_URL,我添加了 tweet_mode 作为扩展到 API 端点

获取https://api.twitter.com/1.1/statuses/show.json?id=1257326183101980673&tweet_mode=extended

希望对遇到同样问题的人有所帮助