问题
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