-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User agent mismatch, changed many useragents but to no avail, still the same error. #2218
Comments
to import cookies from browser: to download Better to have also open instagram, and be a "real" profile (activity, likes, comments etc). You may use |
Why isn't Instaloader using the User Agent from the browser it got the cookies from? I've verified on Windows that in every instance (--login, --load-cookies, --cookiefile / Firefox or Chrome) Instaloader uses a Linux User Agent, this:
An User Agent mismatch from the browser it was logged in from to the one used by Instaloader seems like the most easy thing for Instagram to detect that there's something weird going on. This should be looked at, unless there's a specific tried strategy that I'm not aware of. |
I modified the useragent manually on my code to
instead of the the default
I think it would be best to have useragent checker during the process of downloading and change to a new useragent to avoid this error in the future. |
this doesn't solve the underlying issue that some of the users prefer not to use their login credentials. Instaloader, as-is, works without logging in. Something is going on since sometimes the downloading works, and sometimes it requires for me to use --login. |
Can't say about your specific case but in general, Facebook/Instagram are very "IP aware". If you're using a residential IP, you're likely safe. If you're using a VPN used by thousands, you're not. They also likely have further restrictions to what you can do when not logged in, so at a certain point they ask you to login. |
this didn't occur last time i used instaloader, now it needs for me to use --login
HTTP redirect from https://i.instagram.com/api/v1/users/web_profile_info/?username="" to https://i.instagram.com/accounts/login/?next=/api/v1/users/web_profile_info/
An error occurred: Redirected to login page. Use --login.
The text was updated successfully, but these errors were encountered: