postaddictme / instagram-java-scraper

Instagram Java Scraper. Get account information, photos, videos and comments.
445 stars 149 forks source link

Unable to Login (redirect to https://www.instagram.com/challenge/) #98

Open chikpro opened 6 years ago

chikpro commented 6 years ago

This issue happened when i run app (login) from different IP. After login, instead redirection to BASE_URL = "https://www.instagram.com", it goes to https://www.instagram.com/challenge/.

Is it possible to push in Java "This Was Me" button on a https://www.instagram.com/challenge/ page? Or may be it is possible lo load cookies from Chome browser and skip Authentication process an all?

Here my logs: Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: --> GET https://www.instagram.com/ http/1.1 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Host: www.instagram.com Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Connection: Keep-Alive Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Accept-Encoding: gzip Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: --> END GET Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: <-- 200 OK https://www.instagram.com/ (192ms) Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Content-Type: text/html Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: X-Frame-Options: SAMEORIGIN Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Cache-Control: private, no-cache, no-store, must-revalidate Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Pragma: no-cache Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Expires: Sat, 01 Jan 2000 00:00:00 GMT Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Vary: Cookie, Accept-Language, Accept-Encoding Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Content-Language: en Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Content-Encoding: gzip Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Date: Thu, 15 Mar 2018 14:45:27 GMT Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Strict-Transport-Security: max-age=86400 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: rur=ATN; Path=/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: csrftoken=lva4diqR3LsgVQ69hSpy2VD42S0wBaCn; expires=Thu, 14-Mar-2019 14:45:27 GMT; Max-Age=31449600; Path=/; Secure Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: mid=WqqHBwALAAGdjE3rCy-aSIBYouDg; expires=Wed, 10-Mar-2038 14:45:27 GMT; Max-Age=630720000; Path=/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Connection: keep-alive Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Content-Length: 5415 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: <-- END HTTP

<html lang="en" class="no-js not-logged-in client-root">
.......................
</html>

Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: --> POST https://www.instagram.com/accounts/login/ajax/ http/1.1 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Content-Type: application/x-www-form-urlencoded Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Content-Length: 45 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Referer: https://www.instagram.com/ Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: X-CSRFToken: lva4diqR3LsgVQ69hSpy2VD42S0wBaCn Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Host: www.instagram.com Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Connection: Keep-Alive Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Accept-Encoding: gzip Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: Cookie: csrftoken=lva4diqR3LsgVQ69hSpy2VD42S0wBaCn; rur=ATN; mid=WqqHBwALAAGdjE3rCy-aSIBYouDg Mar 15, 2018 5:45:27 PM okhttp3.internal.platform.Platform log INFO: --> END POST Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: <-- 400 Bad Request https://www.instagram.com/accounts/login/ajax/ (451ms) Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Content-Type: application/json Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Vary: Cookie, Accept-Language Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Cache-Control: private, no-cache, no-store, must-revalidate Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Pragma: no-cache Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Expires: Sat, 01 Jan 2000 00:00:00 GMT Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Content-Language: en Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Date: Thu, 15 Mar 2018 14:45:27 GMT Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Strict-Transport-Security: max-age=86400 Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: csrftoken=lva4diqR3LsgVQ69hSpy2VD42S0wBaCn; expires=Thu, 14-Mar-2019 14:45:27 GMT; Max-Age=31449600; Path=/; Secure Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Set-Cookie: rur=ATN; Path=/ Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Connection: keep-alive Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: Content-Length: 122 Mar 15, 2018 5:45:28 PM okhttp3.internal.platform.Platform log INFO: <-- END HTTP {"message": "checkpoint_required", "checkpoint_url": "/challenge/6439105033/rK72JIUdho/", "lock": false, "status": "fail"}

jbmoney3 commented 6 years ago

EVERYONE I FIGURED IT OUT FINALLY AFTER NO DIRECT ANSWERS ON THE INTERNET!! :) Step:

  1. Have google chrome or install google chrome cause its what I did it on
  2. Go to instagram.com and in your address bar it should now show www.instagram.com/challenge/ or something similar.
  3. This is were you will delete cookies from this site to stop them from replaying the same error message over and over... even if you have the right sms code. Go to step 4!
  4. Click green lock button(website security verification) in your address bar (top left on screen) and go to site settings.
  5. Once there click the back button in the setting option NOT the actual back button to take you to your previous webpage but the little arrow button to go back in the setting.
  6. Then click cookies option
  7. Then click "see all cookies and site data"
  8. "Search cookie" should show in the search bar in the top right
  9. Search Instagram and all your cookies come up
  10. Delete ALL cookies and go back to instagram.com
  11. Finished and should let you log in hopefully.

sometime you got to do things yourself. I looked all week online and didn't find a thing!! Hope this helps

-JB

mishastarlene commented 5 years ago

EVERYONE I FIGURED IT OUT FINALLY AFTER NO DIRECT ANSWERS ON THE INTERNET!! :) Step:

  1. Have google chrome or install google chrome cause its what I did it on
  2. Go to instagram.com and in your address bar it should now show www.instagram.com/challenge/ or something similar.
  3. This is were you will delete cookies from this site to stop them from replaying the same error message over and over... even if you have the right sms code. Go to step 4!
  4. Click green lock button(website security verification) in your address bar (top left on screen) and go to site settings.
  5. Once there click the back button in the setting option NOT the actual back button to take you to your previous webpage but the little arrow button to go back in the setting.
  6. Then click cookies option
  7. Then click "see all cookies and site data"
  8. "Search cookie" should show in the search bar in the top right
  9. Search Instagram and all your cookies come up
  10. Delete ALL cookies and go back to instagram.com could
  11. Finished and should let you log in hopefully.

sometime you got to do things yourself. I looked all week online and didn't find a thing!! Hope this helps

-JB

ok i was wondering if you could help me with an instgram problem, after i delete the cookies, i login to instagram and it says oops a problem occurred....it goes back to the challenge screen i havent been able to use instagram for weeks...even on my app , i can log in on my app but it just says nothing can be loaded i didnt get a email saying i was banned or anything and my friends can still see my page im so confused on whats going on text me 734-756-2306

dh10uv commented 5 years ago

@jbmoney3 I did the exact same thing but after doing that too it is still showing the same thing and I don't even have access to the email and phone no. of the challenge... Please guide what to do

KatySSC commented 5 years ago

I have the exact same problem! It just keeps going to 'Oops a problem occurred' please help!

mel184 commented 5 years ago

@mishastarlene @KatySSC my account has had the same problem since July 17, did either of yours get fixed?

michaelkongg commented 3 years ago

MINE GOT SOLVED!! Download Super VPN and use VPN to access ur account! Most prolly ur instagram direct u to this blank page because they recognise the IP address that you usually sign in using. So i used a different IP address using VPN, and reload Instagram, and it directly got me in. And so from that point onwards, I signed in again to have it verify my email and phone no. without redirecting me to the blank page. And it worked! I successfully verified it and now I don't need VPN to sign bck in. Hope this helps!! Coz man I totally understand AND FEEL all ur struggles not able to access ur Instagram for dayssss!