Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ Quickstart script for InstaPy usage """
- # imports
- import requests, json
- from instapy import InstaPy
- from instapy.util import smart_run
- # login credentials
- insta_username = ''
- insta_password = ''
- # get an InstaPy session!
- # set headless_browser=True to run InstaPy in the background
- session = InstaPy(username=insta_username,
- password=insta_password,
- headless_browser=True,
- disable_image_load=True,
- multi_logs=True)
- with smart_run(session):
- """ Activity flow """
- # Quota supervisor
- session.set_quota_supervisor(enabled=True,
- sleep_after=["likes_h", "follows_h", "unfollows_h"],
- sleepyhead=True, stochastic_flow=True, notify_me=True,
- peak_likes=(70, 300),
- peak_follows=(10, 150),
- peak_unfollows=(35, 150))
- # Settings
- session.set_relationship_bounds(enabled=True,
- delimit_by_numbers=True,
- max_followers=3000,
- min_followers=300,
- min_posts=9)
- session.set_do_comment(enabled=False)
- session.set_do_like(enabled=True, percentage=100)
- session.set_do_follow(enabled=True, percentage=100)
- # session.set_do_follow(enabled=True, percentage=50, times=1)
- # Actions
- session.set_user_interact(amount=2, randomize=True, percentage=100, media='Photo')
- # session.like_by_feed(amount=15, randomize=True, unfollow=False, interact=False)
- session.like_by_tags(
- ['#viaggiaresempre', '#amoviaggiare', '#sempreinviaggio', '#viaggiarechepassione', '#weareitaliantravellers',
- '#siviaggiare'],
- amount=50,
- interact=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement