InstaLooter icon indicating copy to clipboard operation
InstaLooter copied to clipboard

Error when user is authenticated

Open lormayna opened this issue 6 years ago • 9 comments

Library version

What's the installed library version ? Check with instalooter --version:

instalooter v2.3.2

Environment

Describe here your environment, including:

  • OS Debian Buster
  • Python version Python 3.6.5
  • setuptools version if reporting an issue with installation
  • non-standard Python implementation if any Tried inside a virtualenv

Reproducible test case

Are you using the CLI ? If so, include a command that can be used to re-raise the error, with actual arguments anybody can try:

(instadownloader) l@stelvio:~/project/instadownloader$ instalooter user test_private -u XXXX -p PPPP --traceback 2019-01-13 11:21:47 stelvio instalooter.cli[1374] CRITICAL Traceback (most recent call last): File "/home/l/project/instadowloader/lib/python3.6/site-packages/instalooter/cli/init.py", line 151, in main login(args) File "/home/l/project/instadowloader/lib/python3.6/site-packages/instalooter/cli/login.py", line 21, in login InstaLooter._login(username, password) File "/home/l/project/instadowloader/lib/python3.6/site-packages/instalooter/looters.py", line 143, in _login token = next(c.value for c in login.cookies if c.name == 'csrftoken') StopIteration 2019-01-13 11:21:47 stelvio instalooter.cli[1374] WARNING unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('XXX.XXX.XXX.XXX', 55858), raddr=('31.13.86.174', 443)>

lormayna avatar Jan 13 '19 10:01 lormayna

Might be related to new "login security" functionality on Instagram. After instalooter login I'm getting "confirm that it's you" dialog on Instagram pages.

image

Also in mobile app:

photo_2019-01-19_04-13-48

So, seems like Zuck had added more DRM preventing you from getting data from their walled garden. Or they are doing the right way fighting account stealing, which is the real problem, as Instagram is tasty for spammers and scammers.

kolen avatar Jan 19 '19 01:01 kolen

This should not occur in the next release: InstaLooter will now attempt to use the user-agent of your default browser.

althonos avatar Apr 01 '19 03:04 althonos

@althonos, any progress on this bug? still getting blocked by Instagram authentication:

ERROR: Login error: check your connection when I try from bash

ERROR: Login error: check your connection unclosed <socket.socket fd=1120, family-AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('MY LOCAL IP', 52113), raddr=('MY EXTERNAL IP', 443)> when I try from command prompt

And then I get a "We Detected An Unusual Login Attempt" security warning as above on my phone

justingiffard avatar Apr 18 '19 11:04 justingiffard

@justingiffard same problem

mhkarimi avatar Aug 09 '19 02:08 mhkarimi

I'm having the same problem

dausruddin avatar Jan 03 '20 08:01 dausruddin

Turned out Instagram block my IP. I cannot login via browser.

dausruddin avatar Jan 03 '20 10:01 dausruddin

Did any one resolve this issue ?

jeesnjohney avatar May 21 '20 06:05 jeesnjohney

@jeesnjohney yes, I did. I used another server instead because Instagram blocked my server. Since it only have 1 IP address, I cannot change it.

dausruddin avatar May 21 '20 06:05 dausruddin

My isp's ip changed but couldn't connect instalooter,although I confirmed the ip that's me in login activity of instagram.instalooter v2.4.4

gnu-like avatar Sep 01 '20 13:09 gnu-like