Instagram Public Api ( __a=1 ) is banned. Any alternative?

北城以北 提交于 2020-07-18 02:25:43

问题


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.

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

"throttled by instagram because of too many api requests"

Do you have any offer for an alternative?


回答1:


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.




回答2:


i need a good solution too. If cookie works please send one code snipped here for everyone :-)



来源:https://stackoverflow.com/questions/62016243/instagram-public-api-a-1-is-banned-any-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!