question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Best way to avoid time-outs when downloading multiple "post types" (--igtv, --highlights, --story)

See original GitHub issue

Does running instaloader one at a time for each “post type” flag (e.g. instaloader --igtv & instaloader --highlights & instaloader --story) have the same amount of http requests as running it all in one go ('instaloader --igtv -highlights --story`) ?

At the moment I have a script in which I’m calling instaloader each time depending on what I want to include in the download to save it in separate locations. But I think there may be a way for me to do it all in one go & still have post types seprated into different locations accurately.

But if I still come across the “too many http requests” issue at the same rate, then there’s no point in me racking my brain to make it work.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ekalincommented, Oct 27, 2021

The count is done by IG’s servers. Instaloader keeps its own count (trying to replicate what IG does, but it’s all reverse-engineered, and IG is constantly changing) in the hopes of never hitting the threshold that causes IG to return a 429 error.

But it can only do so in one run. If one run ends and you start another shortly after, this second run cannot know that the first run already had already made requests that get you very close to a 429 error.

So running periodically is worst you can do, unless you leave a long interval between runs, say, one hour or more.

1reaction
ekalincommented, Oct 19, 2021

If you run instaloder twice for different media types, there’ll be at least one extra request, since the profile must be fetched. But I think that the profile fetching is unlikely to make a significant difference for rate limiting.

However, instaloader keeps track of requests and tries to slow down when the limit is being reached, but this only works in a single run. If you run instaloader again, it starts counting requests from zero; requests from the previous run are not considered. That increases a lot the chances of getting a 429 error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the best way to post to multiple Instagram accounts ...
The best way is to use an Instagram scheduling tool. ... You can like, follow, post, comment, DM, view stories using this Instagram...
Read more >
Code - GitHub
<link rel="stylesheet" type="text/css" href="_static/instaloaderdoc.css" /> ... Instaloader to also <strong>download the user's stories</strong>,</p>.
Read more >
Command Line Options — Instaloader documentation
If an already-downloaded profile has been renamed, Instaloader automatically finds it by its unique ID and renames the folder accordingly. Besides the profile's ......
Read more >
Instagram Story Video Length: How Long Your Videos Should ...
The maximum length for an Instagram Story video is 15 seconds. But if you're wondering how to get around the time constraint, here's...
Read more >
Spotlight Social Media Feeds – WordPress plugin
Easily display Instagram feeds in less than 7 clicks. Customizable, accessible, and SEO-friendly. The fastest-growing Instagram feed solution.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found