Instagram Public Api(__a = 1)被禁止.还有其他选择吗? [英] Instagram Public Api ( __a=1 ) is banned. Any alternative?

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

问题描述

我使用instagram公共api(将__a=1添加到URL的参数中)来获取帖子的详细信息(captionimageUrlpostTypelikescommentsviewsCount).但是,似乎Instagram最近禁止了该操作,并返回了403.当我尝试通过其网址直接打开帖子时,它还要求登录.

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重定向到身份验证页面.当Instagram帐户和查询geoIP不同时,似乎需要进行身份验证.替代方法是使用官方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天全站免登陆