【问题标题】:How to use new Instagram Graph or Basic Display API to fetch profile image of a normal user (as of 29 June 2020)如何使用新的 Instagram Graph 或 Basic Display API 获取普通用户的个人资料图片(截至 2020 年 6 月 29 日)
【发布时间】:2023-03-13 03:50:01
【问题描述】:

以前的 Instagram API(于 2020 年 6 月 29 日完全删除)允许请求普通用户的头像 URL,但 2 个新 API(图形和基本显示)不再提供此功能。 Instagram Graph API 确实提供了profile_picture_url 字段,但仅适用于企业或创作者帐户。

在生产服务器上,如果您尝试抓取 Instagram 页面或使用https://www.instagram.com/USERNAME/?__a=1 URL,您的请求最终会开始被重定向到登录页面。

您现在如何获取个人资料照片?

额外:

我注意到这四个网站不仅从不同的官方 CDN 位置抓取了个人资料图片,而且还抓取了高达 1080x1080 分辨率的版本。也许他们有一些线索,但我找不到任何可以提供提示的代码:https://instadp.comhttps://izuum.comhttps://gramvio.comhttps://fullinstadp.com

【问题讨论】:

  • 网站不再工作,也许你找到其他解决方案?我在谷歌云上尝试了自己的抓取工具,但 instagram 阻止了来自 GC 的请求

标签: facebook-graph-api instagram instagram-api instagram-graph-api


【解决方案1】:

我有同样的问题。 我已经开始使用有效的会话 ID 向 instagram 服务器发出任何请求。

现在我使用https://github.com/postaddictme/instagram-php-scraper 更好地抓取并更好地管理会话...

您也可以找到适合您的编程语言的库...

【讨论】:

    猜你喜欢
    • 2020-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多