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.

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

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效