postaddictme / instagram-java-scraper

Instagram Java Scraper. Get account information, photos, videos and comments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login throws InstagramAuthException: Access denied

tomziwar opened this issue · comments

Since 26 May, the login method is throwing InstagramAuthException: Access denied. I tried with 2 different users on different IP addresses - result is always the same.

Http response log:

<-- 403 Forbidden https://www.instagram.com/accounts/login/ajax/ (227ms)
Content-Type: text/html
X-Frame-Options: SAMEORIGIN
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Vary: Cookie, Accept-Language
Content-Language: en
Date: Mon, 04 Jun 2018 17:36:42 GMT
Strict-Transport-Security: max-age=86400
Connection: keep-alive
Content-Length: 26152

Late response. The HTTP response clearly says 403 Forbidden. It could be due to a change in the parameters it accepts. Wikipedia says

HTTP 403 is returned when the client is not permitted access to the resource for some reason besides authentication. This other reason needs to be acted upon before re-requesting access to the resource.

I hope you're able to solve the issue. Unfortunately I'm not familiar with this library so I probably can't help with any code.