gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

downloading from instagram

Open chaos1616 opened this issue 3 years ago • 8 comments

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

chaos1616 avatar Sep 13 '22 22:09 chaos1616

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: https://github.com/instaloader/instaloader/issues/1738

mikf avatar Sep 14 '22 15:09 mikf

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.

Kilobyte3189 avatar Sep 15 '22 20:09 Kilobyte3189

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. (https://github.com/mikf/gallery-dl/issues/2666)

mikf avatar Sep 16 '22 08:09 mikf

@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.

github-userx avatar Sep 16 '22 12:09 github-userx

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",

?

viceroycowboy avatar Sep 18 '22 07:09 viceroycowboy

Nope, it's the same thing ultimately..

Hrxn avatar Sep 18 '22 07:09 Hrxn

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?

chaos1616 avatar Sep 18 '22 13:09 chaos1616

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.

Kilobyte3189 avatar Sep 20 '22 22:09 Kilobyte3189

--sleep

what's --sleep for?

afterdelight avatar Sep 28 '22 00:09 afterdelight

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

afterdelight avatar Sep 29 '22 03:09 afterdelight

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

afterdelight avatar Sep 30 '22 06:09 afterdelight

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?

rexon113 avatar Jun 13 '24 20:06 rexon113