-
Notifications
You must be signed in to change notification settings - Fork 24
/
quickstart.py
26 lines (22 loc) · 1.18 KB
/
quickstart.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from instagpy import InstaGPy
from instagpy import config
def main():
#config.TIMEOUT = 5
#config.PROXY = {'http': 'proxy_here', 'https': 'proxy_here'}
insta = InstaGPy(use_mutiple_account=False, session_ids=None,
min_requests=None, max_requests=None)
insta.get_user_basic_details('champagnepapi', pretty_print=True)
#insta.login(username=None, password=None, show_saved_sessions=False, save_session=True)
# insta.logged_in
# user_id = insta.get_user_id(username=None)
# user = insta.get_user_basic_details(username=None)
# user_info = insta.get_user_info(username=None)
# user_data = insta.get_user_data(user_id=None)
# user_friends = insta.get_user_friends(username=None, followers_list=False, followings_list=False,
# end_cursor=None, max=None, save_to_database=False)
# user_profile_media = insta.get_profile_media(username=None, end_cursor=None,
# from_date=None, to_date=None, max=None)
# post_details = insta.get_post_details(post_url=None)
# download_url = insta.get_media_url(response=None)
if __name__ == "__main__":
main()