2019-01-17 11:00:04 +01:00
|
|
|
.. _troubleshooting:
|
|
|
|
|
|
|
|
Troubleshooting
|
|
|
|
===============
|
|
|
|
|
|
|
|
.. highlight:: python
|
|
|
|
|
2020-07-31 22:12:27 +02:00
|
|
|
429 Too Many Requests
|
|
|
|
---------------------
|
2019-01-17 11:00:04 +01:00
|
|
|
|
|
|
|
Instaloader has a logic to keep track of its requests to Instagram and to obey
|
2020-09-19 17:07:57 +02:00
|
|
|
their rate limits. The rate controller assumes that
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-07-31 22:12:27 +02:00
|
|
|
- at one time, Instaloader is the only application that consumes requests, i.e.
|
2019-01-17 11:00:04 +01:00
|
|
|
neither the Instagram browser interface, nor a mobile app, nor another
|
2020-07-31 22:12:27 +02:00
|
|
|
Instaloader instance is running in parallel, and
|
2019-01-17 11:00:04 +01:00
|
|
|
|
|
|
|
- no requests had been consumed when Instaloader starts.
|
|
|
|
|
|
|
|
The latter one implies that restarting or reinstantiating Instaloader often
|
2020-09-19 17:07:57 +02:00
|
|
|
within short time is prone to cause a 429.
|
|
|
|
|
|
|
|
Since the behavior of the rate controller might change between different
|
|
|
|
versions of Instaloader, make sure to use the current version of Instaloader,
|
|
|
|
especially when encountering many 429 errors.
|
|
|
|
|
|
|
|
If a request is denied with a 429,
|
2019-01-17 11:00:04 +01:00
|
|
|
Instaloader retries the request as soon as the temporary ban is assumed to be
|
|
|
|
expired. In case the retry continuously fails for some reason, which should not
|
2020-07-31 22:12:27 +02:00
|
|
|
happen under normal conditions, consider adjusting the
|
2019-01-17 11:00:04 +01:00
|
|
|
:option:`--max-connection-attempts` option.
|
|
|
|
|
2020-06-16 21:44:22 +02:00
|
|
|
There have been observations that services, that in their nature offer
|
2020-07-30 16:41:45 +02:00
|
|
|
promiscuous IP addresses, such as cloud, VPN and public proxy services, might be
|
2020-06-16 21:44:22 +02:00
|
|
|
subject to significantly stricter limits for anonymous access. However,
|
|
|
|
logged-in accesses (see :option:`--login`) do not seem to be affected.
|
|
|
|
|
2020-11-28 16:29:18 +01:00
|
|
|
Instaloader allows to adjust the rate controlling behavior by overriding
|
|
|
|
:class:`instaloader.RateController`.
|
|
|
|
|
2020-06-16 21:44:22 +02:00
|
|
|
Too many queries in the last time
|
|
|
|
---------------------------------
|
|
|
|
|
2019-01-17 11:00:04 +01:00
|
|
|
**"Too many queries in the last time"** is not an error. It is a notice that the
|
|
|
|
rate limit has almost been reached, according to Instaloader's own rate
|
2020-09-19 17:07:57 +02:00
|
|
|
accounting mechanism.
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-11-28 16:29:18 +01:00
|
|
|
Instaloader allows to adjust the rate controlling behavior by overriding
|
|
|
|
:class:`instaloader.RateController`.
|
|
|
|
|
2020-06-16 21:44:22 +02:00
|
|
|
Private but not followed
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
You have to follow a private account to access most of its associated
|
|
|
|
information.
|
|
|
|
|
2020-07-31 22:12:27 +02:00
|
|
|
Login error
|
2019-01-17 11:00:04 +01:00
|
|
|
-----------
|
|
|
|
|
|
|
|
Instaloader's login *should* work fine, both with and without
|
|
|
|
Two-Factor-Authentication. It also supports handling the *checkpoint challenge*,
|
|
|
|
issued when Instagram suspects authentication activity on your account, by
|
|
|
|
pointing the user to an URL to be opened in a browser.
|
|
|
|
|
2021-07-24 19:17:53 +02:00
|
|
|
Nevertheless, in :issue:`92`, :issue:`615`, :issue:`1150` and :issue:`1217`,
|
|
|
|
users reported problems with
|
2020-07-31 22:12:27 +02:00
|
|
|
logging in. We recommend to always keep the session file which Instaloader
|
|
|
|
creates when using :option:`--login`. If a session file is present,
|
2020-09-19 17:07:57 +02:00
|
|
|
:option:`--login` does not make use of the failure-prone login procedure.
|
|
|
|
Also, session files usually do not expire.
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-07-31 22:12:27 +02:00
|
|
|
If you do not have a session file present, you may use the following script
|
2020-06-03 17:14:08 +02:00
|
|
|
(:example:`615_import_firefox_session.py`) to workaround login problems by
|
|
|
|
importing the session cookies from Firefox and bypassing Instaloader's login and
|
|
|
|
so still use Instaloader's logged-in functionality.
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-06-03 17:14:08 +02:00
|
|
|
.. literalinclude:: codesnippets/615_import_firefox_session.py
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-06-03 17:14:08 +02:00
|
|
|
To use this script,
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-06-03 17:14:08 +02:00
|
|
|
#. Download the script: :example:`615_import_firefox_session.py`,
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-06-03 17:14:08 +02:00
|
|
|
#. Login to Instagram in Firefox,
|
2019-01-17 11:00:04 +01:00
|
|
|
|
2020-06-03 17:14:08 +02:00
|
|
|
#. Execute the snippet, e.g. with ``python 615_import_firefox_session.py``,
|
|
|
|
|
|
|
|
#. Then, ``instaloader -l USERNAME`` should work fine.
|
|
|
|
|
2020-07-30 16:41:45 +02:00
|
|
|
This script also supports specifying a cookie file path, which may be useful if
|
2020-06-03 17:14:08 +02:00
|
|
|
you use multiple Firefox profiles or if your operating system has the directory
|
2020-07-31 22:12:27 +02:00
|
|
|
structure differently set up. Also, you can specify an alternative session file
|
2020-06-03 17:14:08 +02:00
|
|
|
path.
|