api - 目前是否有未经身份验证的情况下获取 Instagram 用户媒体?

标签 api web-crawler instagram

直到最近,有几种方法可以在不需要 API 身份验证的情况下检索 Instagram 用户媒体。但显然,该网站停止了所有这些。

一些 方法:

  • https://api.instagram.com/v1/users/user-id/media/recent/
  • https://www.instagram.com/user-id/media
  • https://www.instagram.com/user-id/?__a=1

  • 还有一些 相关问题是:
  • How can I get a user's media from Instagram without authenticating as a user?
  • Is there still a way to fetch instagram feed without using access token now (06/2016)?

  • 我能够通过 检索前二十个项目爬行用户的网页,但这不是一个好的或标准的方法,尤其是当 Instagram 没有正式支持它时。

    我想知道您是否知道 的任何方法目前作品?

    最佳答案

    不幸的是,Instagram 停止了它的许多 API,包括那些需要身份验证的 API。它在 https://www.instagram.com/developer/ 中声明:

    To continuously improve Instagram users' privacy and security, we are accelerating the deprecation of Instagram API Platform, making the following changes effective immediately.


    一些链接解释了这些更改的详细信息和原因:
  • https://www.programmableweb.com/news/instagram-has-effectively-killed-its-public-api/brief/2018/04/04
  • https://techcrunch.com/2018/04/02/instagram-api-limit/
  • https://www.macrumors.com/2018/04/04/instagram-disables-third-party-app-apis/

  • 在(@Louis B. 建议)https://stackoverflow.com/a/49906525/278840 中提出了一些非官方的爬取方法。 .您应该考虑到这些方法每周都会发生变化。因此,我绝对更喜欢使用私有(private) API。
    更新 :
    旧的公共(public) API(没有身份验证)再次运行。我们可以通过添加?__a=1访问到个人资料 URL 的末尾,例如 this :
    https://www.instagram.com/leomessi/?__a=1
    

    关于api - 目前是否有未经身份验证的情况下获取 Instagram 用户媒体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49852080/

    相关文章:

    python - 我可以在项目目录之外执行 scrapy(python) 抓取吗?

    instagram - 从 Instagram Business Discovery API 获取帐户的媒体。

    php - 本地主机的 Instagram redirect-uri 失败

    python - 如何从 Python 中的 InstagramAPI 开始?

    php - Facebook API 400 错误请求

    html - 检测 HTML5 Media Capture API 支持

    java - 识别搜索爬虫

    php - Web测试用例: Use crawler to test a string

    android - 用于英语以外语言的 Google 语音转文本 API

    api - 搜索特定 URL 的推文 Twitter API 1.1