instatools.instagram package

Submodules

instatools.instagram.api module

instatools.instagram.feeds module

class instatools.instagram.feeds.FeedReader(api, feed_type, *args, reset_after=86400)[source]

Bases: object

reset()[source]
class instatools.instagram.feeds.Feeds(api=None)[source]

Bases: object

liked
location(search)[source]
popular
saved
tag(search)[source]
timeline
user(search)[source]
user_tags(search)[source]

instatools.instagram.hub module

class instatools.instagram.hub.Hub(api=None)[source]

Bases: object

activity
explore
following_activity
inbox
megaphone
share_inbox

instatools.instagram.instagram module

Public api for Instagram

class instatools.instagram.instagram.Instagram(username=None, password=None, session=None)[source]

Bases: object

approve(user_id)[source]
block(user_id)[source]
comment(post_id, text)[source]
direct_message(recipients, msg)[source]
direct_share(post_id, recipients, msg=None)[source]
edit_caption(post_id, new_caption)[source]
follow(user_id)[source]
get_comments(post_id)[source]
get_followers(user_id=None)[source]
get_following(user_id=None)[source]
get_friendship(user_id)[source]
get_geo_media(user_id)[source]
get_likers(post_id)[source]
get_post(post_id)[source]
get_story(user_id)[source]
get_user(user_id)[source]
get_username(username)[source]
ignore(user_id)[source]
like(post_id)[source]
login()[source]

Login to Instagram with account credentials provided in __init__

logout()[source]

Logout of currently logged-in account

password

Password of Instagram account

post(*args)[source]
remove_comment(post_id, comment_id)[source]
remove_post(post_id)[source]
remove_tag(post_id)[source]
save(post_id)[source]
switch_user(username=None, password=None, session=None)[source]

Switches current account username and password - requires login

unblock(user_id)[source]
unfollow(user_id)[source]
unlike(post_id)[source]
unsave(post_id)[source]
username

Username of Instagram account

username_id

User-id of Instagram account

class instatools.instagram.instagram.Users(api=None, list_type=None)[source]

Bases: object

Class representing new and removed users

current[source]
update()[source]

instatools.instagram.profile module

class instatools.instagram.profile.Profile(api=None)[source]

Bases: object

biography
change_password(new_password)[source]
change_profile_picture()[source]
edit(phone, email, *, full_name=None, username=None, url=None, biography=None, gender=None)[source]
external_url
follow_requests
full_name
remove_profile_picture()[source]
set_private()[source]
set_public()[source]
threads(thread, cursor=None)[source]

instatools.instagram.search module

class instatools.instagram.search.Search(api=None)[source]

Bases: object

facebook(users)[source]
locations(location)[source]
tags(tag)[source]
users(username)[source]

instatools.instagram.upload module

Module contents

class instatools.instagram.Instagram(username=None, password=None, session=None)[source]

Bases: object

approve(user_id)[source]
block(user_id)[source]
comment(post_id, text)[source]
direct_message(recipients, msg)[source]
direct_share(post_id, recipients, msg=None)[source]
edit_caption(post_id, new_caption)[source]
follow(user_id)[source]
get_comments(post_id)[source]
get_followers(user_id=None)[source]
get_following(user_id=None)[source]
get_friendship(user_id)[source]
get_geo_media(user_id)[source]
get_likers(post_id)[source]
get_post(post_id)[source]
get_story(user_id)[source]
get_user(user_id)[source]
get_username(username)[source]
ignore(user_id)[source]
like(post_id)[source]
login()[source]

Login to Instagram with account credentials provided in __init__

logout()[source]

Logout of currently logged-in account

password

Password of Instagram account

post(*args)[source]
remove_comment(post_id, comment_id)[source]
remove_post(post_id)[source]
remove_tag(post_id)[source]
save(post_id)[source]
switch_user(username=None, password=None, session=None)[source]

Switches current account username and password - requires login

unblock(user_id)[source]
unfollow(user_id)[source]
unlike(post_id)[source]
unsave(post_id)[source]
username

Username of Instagram account

username_id

User-id of Instagram account