Skip to content
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

Instagram '403 Forbidden' #3191

Closed
rhgtuh opened this issue Nov 11, 2022 · 3 comments
Closed

Instagram '403 Forbidden' #3191

rhgtuh opened this issue Nov 11, 2022 · 3 comments

Comments

@rhgtuh
Copy link

rhgtuh commented Nov 11, 2022

It was working perfectly fine earlier today.

Now I'm getting

[instagram][error] HttpError: '403 Forbidden' for 'https://www.instagram.com/accounts/login/ajax/'

gallery-dl -u [email protected] -p 123456 https://www.instagram.com/corinnakopf/

I've also tried clearing cache

gallery-dl --clear-cache instagram

still doesn't work

@mikf
Copy link
Owner

mikf commented Nov 11, 2022

Login with username & password is broken for Instagram.
Use exported cookies or --cookies-from-browser instead.

@mikf mikf added the duplicate label Nov 13, 2022
@Infinitay
Copy link
Contributor

Even after using exported cookies I noticed that I have to re-acquire the cookies and save them again after ~24 hours (that's how often gallery-dl is ran). Is this an issue with gallery-dl or with Instagram?

Also, I've tried setting cookies-update both to true and false, yet I get the same results after about a day.

@mikf
Copy link
Owner

mikf commented Nov 18, 2022

My current cookies.txt file for Instagram is from 2022-09-22, but I only use it for testing purposes. I'd guess this is Instagram invalidating your session after using it for too much.

@mikf mikf closed this as completed Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants