检索超过150条Instagram评论 [英] Retrieving more than 150 Instagram comments

查看:40
本文介绍了检索超过150条Instagram评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在任何给定的 Instagram 媒体上查看所有评论,即使该媒体有超过150条评论也是如此.截至目前,似乎不可能在Instagram站点上的某媒体上查看超过20条评论,并且是否使用 Instagram API库,将返回最新的150条注释,其中没有用于分页或查看其他评论.

I would like to be able view all of the comments on any given piece of Instagram media, even if the media has over 150 comments. As of now, it is seemingly impossible to view more than the most recent 20 comments on a piece of media on the Instagram site and if one uses either the Instagram API Console or the Instagram API Libraries, the most recent 150 comments are returned with no options for pagination or viewing addition comments.

我首先当然要在提供的控制台和我的控制台中尝试记录的媒体评论查询.自己的环境.在这两种情况下,最多返回150条评论.陷入困境,我开始在网上寻找更多信息.

I first, of course, tried the documented media comment query in both the provided console and in my own environment. In both cases, a maximum of 150 comments were returned. Stumped, I began looking for more information online.

已经通读了 Instagram API文档,并在 Instagram API Google Group 关于几个Instagram主题的问题,我想知道是否有可能我可以尝试的未记录的东西.

Having read over the Instagram API Documentation thoroughly, tested various endpoints in the Instagram API Console, and read various StackOverflow questions in the Instagram tag and Instagram API Google Group questions on several Instagram topics, I wondered if there was a chance of something being undocumented that I could try.

用户最近的媒体终结点文档包括用于max_idmax_timestamp的允许分页的参数通过检索所述max_idmax_timestamp之前的媒体,通过任何给定用户的最新媒体.由于每个注释都带有created_timeid属性,因此,我尝试为各种注释ID和时间戳添加max_idmax_timestamp的参数(它们自己以及一起),以尝试分页查看注释.我的尝试均无济于事.

The user recent media endpoint documentation includes parameters for max_id and max_timestamp that allow for paging through the most recent media for any given user by retrieving the media that comes before said max_id or max_timestamp. Since each comment comes with created_time and id attributes, I attempted to add the parameters for max_id and max_timestamp (both on their own and together) for various comment IDs and timestamps in an attempt to page through comments. None of my attempts worked.

除非有人提出其他建议,否则我现在处于停滞状态.

I am now at a standstill unless someone has another suggestion.

使用 Instagram API控制台,我采取了以下步骤来尝试获取这张照片.

Using the Instagram API Console, I took the following steps in attempt to get all of the comments for this photo.

  1. 对自己进行了OAuth2令牌的认证
  2. 运行用户搜索查询coltonlhaynes以获得用户id: 9610843
  3. 对用户最近的媒体查询用户ID:9610843以获取最新的媒体
  4. 关于最新媒体的收集信息(上面的链接照片)
    • 媒体id: 698057751201132903_9610843
    • 评论count: 1375
  1. Authenticated myself for an OAuth2 token
  2. Ran a user search query for coltonlhaynes to obtain the user id: 9610843
  3. Ran a user recent media query for user id: 9610843 to obtain the most recent media
  4. Gathered information about the most recent media (the above linked photo)
    • media id: 698057751201132903_9610843
    • comment count: 1375
  • created time: 1397460230
  • 评论id: 698269477955776593
  • created time: 1397460230
  • comment id: 698269477955776593
  • ?max_timestamp=1397460230
  • ?max_id=698269477955776593
  • ?max_timestamp=1397460230&max_id=698269477955776593
  • ?max_id=698269477955776593&max_timestamp=1397460230
  • ?max_timestamp=1397460230
  • ?max_id=698269477955776593
  • ?max_timestamp=1397460230&max_id=698269477955776593
  • ?max_id=698269477955776593&max_timestamp=1397460230

请注意

据我所知,没有解决该问题的方法,但是自从Instagram开发团队已经声明,他们将不会我不再在监视Google网上论坛,而是在监视StackOverflow,我将其放在此处.

Please Note

To my knowledge, there is no solution to this issue, but since the Instagram Development Team has stated that they will no longer be monitoring the Google Group and will be monitoring StackOverflow instead, I'm putting this here.

推荐答案

好,这将是一个非常棘手的"解决方案,并且我目前还没有准备好自己做(由于家里缺少ADSL)但是我可以提供有关如何解决此问题的逐步指南.

Ok, This is going to be a very "Hacky" solution, and I am not currently setup to do this myself (due to lack of ADSL at home) but I can provide a step by step guide of how I would approach this issue.

首先,您将需要一个名为"Charles Web调试代理"

First of all you will need a tool called "Charles Web Debuging Proxy"

该网站上有一个教程,介绍如何在charles中启用"SSL调试"(这将要求您在移动设备上安装新的"root证书",以诱使其认为由charles签名的https事务)实际上是由instagram.com签名的)

There is a tutorial on the site on how to enable "SSL debugging" in charles, (which will require you to install a new "root certificate" on your mobile device, to trick it into thinking that https transactions signed by charles are actually signed by instagram.com )

现在将您的移动设备设置为通过所述代理路由所有请求(必须将其安装在您的本地wi-fi网络上.)

Now Set your mobile device to route all requests through said proxy ( which will have to be installed on your local wi-fi network.)

转到 https://www.google.com ,并检查Charles是否同时记录了请求和响应.

go to https://www.google.com and check that charles is logging both requests and responses.

一旦所有设置正确,您就可以查看instagram应用本身用于生成所述评论页面的API调用.

Once this is all setup correctly then you can take a look at the API calls which the instagram app itself uses to generate said comment pages.

这篇关于检索超过150条Instagram评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆