douqingzhi0980 2016-11-09 02:13
浏览 48
已采纳

通过网络搜索获取Instagram公开个人资料数据

I try to retrieve some public profile data from instagram without take a use of the API. I already used file_get_contents and extract the _sharedData. But this method slow down the performance extremly (5 Seconds to load) so for production it is nonesense.

I've seen in one stackoverflow question, that they called http://instagram.com/web/search/topsearch/?query=user_id to access at least the number of followers. But there are no further details.

Is there any documentation about this web search or some solution to access public profile data with instagrams web search? I need at least the counts for media, followers and followed-by.

  • 写回答

1条回答 默认 最新

  • dongyi3616 2016-11-16 10:45
    关注

    You can add ?__a=1 to the url and get json only:

    https://www.instagram.com/facebook/?__a=1
    

    It contains public profile data which you've mentioned:

    user:
        follows:
            count
        followed_by:
            count
        media:
            count
    

    It tooks about 280ms for me.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?