Exceptions

exception InstaloaderException

Base exception for this script.

Note

This exception should not be raised directly.

exception ConnectionException

Bases: instaloader.exceptions.InstaloaderException

exception QueryReturnedBadRequestException

Bases: instaloader.exceptions.InstaloaderException

exception QueryReturnedForbiddenException

Bases: instaloader.exceptions.InstaloaderException

exception ProfileNotExistsException

Bases: instaloader.exceptions.InstaloaderException

exception ProfileHasNoPicsException

Bases: instaloader.exceptions.InstaloaderException

Deprecated since version 4.2.2: Not raised anymore.

exception PrivateProfileNotFollowedException

Bases: instaloader.exceptions.InstaloaderException

exception LoginRequiredException

Bases: instaloader.exceptions.InstaloaderException

exception TwoFactorAuthRequiredException

Bases: instaloader.exceptions.InstaloaderException

New in version 4.2.

exception InvalidArgumentException

Bases: instaloader.exceptions.InstaloaderException

exception BadResponseException

Bases: instaloader.exceptions.InstaloaderException

exception BadCredentialsException

Bases: instaloader.exceptions.InstaloaderException

exception PostChangedException

Bases: instaloader.exceptions.InstaloaderException

New in version 4.2.2.

exception QueryReturnedNotFoundException

Bases: instaloader.exceptions.ConnectionException

Changed in version 4.3: QueryReturnedNotFoundException now inherits ConnectionException to retry on 404 errors.

exception TooManyRequestsException

Bases: instaloader.exceptions.ConnectionException

exception AbortDownloadException

Bases: Exception

Exception that is not catched in the error catchers inside the download loop and so aborts the download loop.

This exception is not a subclass of InstaloaderException.

New in version 4.7.

Next Section

Advanced Instaloader Examples