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 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失