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

downloading from instagram #2912

Closed
chaos1616 opened this issue Sep 13, 2022 · 13 comments
Closed

downloading from instagram #2912

chaos1616 opened this issue Sep 13, 2022 · 13 comments

Comments

@chaos1616
Copy link

i would like to use gallerydl to download from instagram but i just cannot afford to lose my current account and i really dont know what to do. i need some tips on how i can use gallery dl on instagram without getting banned. any help will be appreciated and i dont mind the downloads moving slow as far as my account doesn't get banned any strategy is valid. thanks

@mikf
Copy link
Owner

mikf commented Sep 14, 2022

Not a definite answer since I have no idea what IG's internal logic for bot detection is, but you might want to use rather high values for --sleep-request and plain --sleep, for example:

gallery-dl --sleep-request 15-45 --sleep 2-10 ...

-o browser=firefox could also be useful to look more like an actual browser.

No guarantees, though.

I would have recommended instaloader, but it seems users there are also getting their accounts banned: instaloader/instaloader#1738

@Kilobyte3189
Copy link

Gallery-dl currently works better for me than Instaloader. With Instaloader I get blocked or logged out in no time, with gallery-dl this doesn't happen to me.

@mikf
Copy link
Owner

mikf commented Sep 16, 2022

Instaloader has the benefit of downloading higher-quality images in all circumstances. gallery-dl only does that for certain URLs (stories, highlights, single posts), but not for instagram.com/USER. (#2666)

@github-userx
Copy link

@Kilobyte3189 yeah Instagram got much stricter and better at limiting scraping. I remember 5 years ago how easily it was to just scrape entire accounts with thousands of images and even metadata requests without getting banned/locked account.

@viceroycowboy
Copy link

gallery-dl --sleep-request 15-45 --sleep 2-10 ...

Is there a difference to put it in line like

gallery-dl --sleep-request 15-45 --sleep 2-10

or to put in into a config like

"instagram":
        {
            "cookies": "instagram.com_cookies.txt",
            "include": "posts,stories,reels,highlights",
            "sleep-request" : "15-45",
            "sleep": "2-10",

?

@Hrxn
Copy link
Contributor

Hrxn commented Sep 18, 2022

Nope, it's the same thing ultimately..

@chaos1616
Copy link
Author

Gallery-dl currently works better for me than Instaloader. With Instaloader I get blocked or logged out in no time, with gallery-dl this doesn't happen to me.

is there anything special flags you use or do you just use it as is?

@Kilobyte3189
Copy link

is there anything special flags you use or do you just use it as is?

I use gallery-dl without any special flags.

I download 30 to 50 posts or stories once a day in one go.
I don't use VPN and have a mobile number connected to my account (0 followers). In my use case with my setup I have no problems.
Instaloader gives up with the same account after only 10 posts in a row (when I download my USER/saved/) (HTTP error code 403). Then I get kicked and either can't log in for the day or have to change my password.

@afterdelight
Copy link

afterdelight commented Sep 28, 2022

--sleep

what's --sleep for?

@Hrxn
Copy link
Contributor

Hrxn commented Sep 28, 2022

you can look up options like sleep for yourself...

@afterdelight
Copy link

afterdelight commented Sep 29, 2022

yes it worked but it doesnt print log on verbose when downloading?

@afterdelight
Copy link

afterdelight commented Sep 30, 2022

gallery-dl --sleep-request 15-45 --sleep 2-10 ...

Is there a difference to put it in line like

gallery-dl --sleep-request 15-45 --sleep 2-10

or to put in into a config like

"instagram":
        {
            "cookies": "instagram.com_cookies.txt",
            "include": "posts,stories,reels,highlights",
            "sleep-request" : "15-45",
            "sleep": "2-10",

?

Those include setting values will get your account banned very fast

@mikf mikf closed this as completed Oct 11, 2022
@rexon112
Copy link

gallery-dl --sleep-request 15-45 --sleep 2-10 ...

Is there a difference to put it in line like
gallery-dl --sleep-request 15-45 --sleep 2-10
or to put in into a config like

"instagram":
        {
            "cookies": "instagram.com_cookies.txt",
            "include": "posts,stories,reels,highlights",
            "sleep-request" : "15-45",
            "sleep": "2-10",

?

Those include setting values will get your account banned very fast

Could you elaborate on that? I'm currently in the process on downloading Instagram posts without getting banned too quickly or at all. Is it the fact you scrape everything of the profile which triggers Instagram bot detection? Is it better to just download, say, posts and highlights?

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

8 participants