The InstaUser class

class InstaTweet.instauser.InstaUser(data, client=None)[source]View on GitHub

Bases: object

Minimalistic API response wrapper for an Instagram profile

__init__(data, client=None)[source]View on GitHub

Initialize an InstaUser

Parameters
property id: int

Instagram User ID

property posts: [InstaPost]

Returns the list of posts scraped from the Instagram user

property media_data: dict
property user_data: dict

Requests the next page of posts

If the user has_more_posts, they’ll be added to the posts list

Returns

True if the request was successful, otherwise False

Return type

bool

Returns True if more posts can be scraped using get_more_posts()

property end_cursor: str

Cursor used in request by get_more_posts()

property page_info: dict