Instagram Public Api ( __a=1 ) 被禁止.有什么替代方案吗? [英] Instagram Public Api ( __a=1 ) is banned. Any alternative?

查看:46
本文介绍了Instagram Public Api ( __a=1 ) 被禁止.有什么替代方案吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 instagram 公共 api(将 __a=1 添加到 url 的参数)来获取帖子详细信息(caption ,imageUrl,postTypelikescommentsviewsCount).但是最近好像 Instagram 禁止了它并返回了 403.当我尝试通过其 usrl 直接打开帖子时,它也要求登录.

I used instagram public api (adding __a=1 to parameters of an url) to get a post detail (caption ,imageUrl, postType, likes, comments , viewsCount). But it seems that Instagram banned that recently and returned a 403. It also asks for login when I try to directly open a post by its usrl.

我尝试使用 instagram 私有 api (https://mgp25.github.io/)获取帖子详细信息,但在一些请求之后 instargam 也禁止了:

I tried to use the instagram private api (https://mgp25.github.io/) for getting post details, but after some requests instargam banned that too:

由于 api 请求过多而被 instagram 限制"

"throttled by instagram because of too many api requests"

您有任何替代方案吗?

推荐答案

实际上并没有真正被禁止,但现在使用 302 重定向到 auth 页面.当 Instagram 帐户和查询 geoIP 不同时,似乎需要 auth.另一种方法是使用官方 API.无法进行抓取,因为配置文件链接现在也需要身份验证.您可以进行经过身份验证的抓取,但每小时只能进行 200 次查询(Instagram 发送以获取数据).

Actually it is not really banned but now redirects with 302 to auth page. It seems like auth is required when Instagram account and query geoIPs are different. Alternative is to use official API. No scraping can be done, because the profile link now also requires authentication. You can do authenticated scraping but you are limited to 200 queries ( that Instagram sends to get data) per hour.

这篇关于Instagram Public Api ( __a=1 ) 被禁止.有什么替代方案吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆