Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # imports
- import random
- from instapy import InstaPy
- from instapy.util import smart_run
- # login credentials
- insta_username = 'sexy'
- insta_password = 'config'
- # 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,
- nogui=True)
- with smart_run(session):
- """ Activity flow """
- # general settings
- hashtags = ['retro', 'cyberpunk', 'retroart', 'retrolife', 'retrostyle',
- 'retrofuture', 'retrofuturism', 'retrocommunity', 'vintage',
- 'instaretro', 'classic', '80s', 'retrowave', 'synthwave',
- 'oldschool', 'hipster', 'nostalgia', 'oldies', '80s','music',
- 'art']
- random.shuffle(hashtags)
- my_hashtags = hashtags[:4]
- session.set_do_follow(enabled=True, percentage=40, times=1)
- session.set_do_like(enabled=True, percentage=90)
- session.set_do_comment(enabled=True, percentage=10)
- session.set_comments([u'Thats just amazing! :heart_eyes:',
- u'Sooo lit :fire:',
- u'Awesome :thumbsup: !',
- u'I dig it :wink:',
- u'Remarkable :heart_eyes: Just remarkable',
- u'This is intense!! :heart_eyes:',
- u'Superb pic :fire:',
- u'Thrilling pic :wink:',
- u'Interesting :smiley:',
- u'Great pic!! :smiley: :thumbsup:'],
- media='Photo')
- session.set_relationship_bounds(enabled=True,
- delimit_by_numbers=True,
- potency_ratio=None,
- max_followers=5553,
- min_followers=25,
- min_following=35)
- session.set_delimit_liking(enabled=True, max=95, min=0)
- session.set_delimit_commenting(enabled=True, max=20, min=0)
- session.set_quota_supervisor(enabled=True, sleep_after=["likes", "follows"], sleepyhead=True, stochastic_flow=$
- peak_likes=(150, 950),
- peak_comments=(18, 110),
- peak_follows=(65, 400))
- session.set_user_interact(amount=1, randomize=False, percentage=50, media='Photo')
- # activity
- session.like_by_tags(my_hashtags, amount=40, media=None)
- session.unfollow_users(amount=250, InstapyFollowed=(True, "nonfollowers"), style="FIFO", unfollow_after=12*60*$
- session.unfollow_users(amount=250, InstapyFollowed=(True, "all"), style="FIFO", unfollow_after=24*60*60, sleep$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement