Welcome to Instagram Client’s documentation!

Instagram CLI

insta.cli.login() Tuple[Instaloader, Profile]

Logs in to the instagram client using username and password stored as env vars.

Returns:

instagram module and profile information

Return type:

tuple

Instagram Connector

class insta.ig_connector.Instagram(insta_user: Optional[str] = None, insta_pass: Optional[str] = None)

Initiates IG client. Takes username and password as arguments for authentication.

>>> Instagram
Parameters:
  • insta_user – Username for the authentication instagram account.

  • insta_pass – Password for the authentication instagram account.

dp(target_profile: str) NoReturn

Gets display picture of a profile and saves it locally. Also asks for deletion post preview.

Parameters:

target_profile – User id of the profile for which the display picture has to be downloaded.

followees() NoReturn

Prints followees’ username and bio.

followers() NoReturn

Prints followers’ username and bio.

static followers_thread(follower: Profile) NoReturn

Takes follower’s profile data as input and prints their username and bio.

Parameters:

follower – Takes follower profile data as argument.

followers_threaded() NoReturn

Get followers’ information concurrently.

Initiates Instagram().followers_thread() in a multi-threaded execution. Set max_workers to 5 as anything exceeding 10 will block the origin IP range for 10 minutes.

static following_thread(followee: Profile) NoReturn

Takes following people’s profile data as input and prints their username and bio.

Parameters:

followee – Take followee profile data as argument.

following_threaded() NoReturn

Get followees’ information concurrently.

Initiates Instagram().following_thread() in a multi-threaded execution. Set max_workers to 5 as anything exceeding 10 will block the origin IP range for 10 minutes.

post_info(tagged: bool = True) NoReturn

Prints information of posts.

Gets tagged posts’ information when ‘tagged’ is set to True Gets self post information when ‘tagged’ flag is not used

Parameters:

tagged – Takes boolean value as argument. Set to False by default.

ungrateful() NoReturn

Prints who doesn’t follow you back and who you don’t follow back.

Indices and tables