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
data (dict) β the API response JSON to use as source data
client (Optional[InstaClient]) β API client to use; only required for
get_more_posts()
- get_more_posts()[source]View on GitHubο
Requests the next page of posts
If the user
has_more_posts
, theyβll be added to theposts
list- Returns
True
if the request was successful, otherwiseFalse
- Return type
- property has_more_posts: boolο
Returns
True
if more posts can be scraped usingget_more_posts()
- property end_cursor: strο
Cursor used in request by
get_more_posts()