Package name in this build: instaloader 4.16.
| Exception | What it means |
|---|---|
LoginRequiredException | Instagram sent the client to the login page, or the call needs a session. |
BadCredentialsException | The password was rejected, or a 2FA step failed. |
TwoFactorAuthRequiredException | Login answered that two-factor authentication is required. |
TooManyRequestsException | Instagram answered HTTP 429. After retries this is wrapped in ConnectionException. |
PrivateProfileNotFollowedException | The profile is private and the logged-in user does not follow it. |
ProfileNotExistsException | No profile with that username. |
AbortDownloadException | Instagram asked for feedback, a checkpoint, or a challenge. |
QueryReturnedForbiddenException | An anonymous download answered HTTP 403. |
ConnectionException | Another non-200 status, or the retries ran out. |
QueryReturnedNotFoundException | The JSON API or a download answered HTTP 404. |
AbortDownloadException is not a subclass of InstaloaderException.
SocialScrape#
Instagram profile is GET /v1/instagram/profile. A private account comes back with is_private true. Posts are GET /v1/instagram/profile/posts, and one post is GET /v1/instagram/post.
Failed requests cost 0 credits. New accounts get 100 credits on signup, no card. Codes are on errors.