从 Instagram 获取图像 ID 的最佳方法

best method for getting image ID from Instagram

我正在编写一个从 Instagram 获取分析数据的应用程序,但它需要提交图像 ID。

虽然来自instagram的图片ID可以出现在各种xpath和各种命名前缀中 此示例显示图像 ID,其前面带有单词 'frame'

是否有现成的解决方案来检索 Instagram 图像 ID。

如果我需要自己写一个,最好的方法是什么?

打开gramfeed.com中的图片,里面会有可以复制的媒体ID。

例如如果https://instagram.com/p/2WbeH-BQTx/ is the image you want, replace http://instagram.com with http://gramfeed.com

http://gramfeed.com/p/2WbeH-BQTx/ 将打开包含更多详细信息的同一图片,您必须通过 gramfeed 上的 instagram 登录。

有一个 Instagram API 可用于以编程方式获取此内容:https://instagram.com/developer/endpoints/media/#get_media_by_shortcode