Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU nano 2.0.6 File: quickstart.py
- """ Quickstart script for InstaPy usage """
- # imports
- from instapy import InstaPy
- from instapy.util import smart_run
- # login credentials
- insta_username = 'xxxxxxxxxxx'
- insta_password = 'xxxxxxxxxxx'
- # get an InstaPy session!
- # set headless_browser=True to run InstaPy in the background
- session = InstaPy(username=insta_username,
- password=insta_password,
- headless_browser=False)
- with smart_run(session):
- """ Activity flow """
- # general settings
- session.set_relationship_bounds(enabled=True,
- delimit_by_numbers=True,
- max_followers=5000,
- min_followers=50,
- min_following=50)
- session.set_dont_include(["friend1", "friend2", "friend3"])
- session.set_dont_like(["pizza", "#store"])
- # activity
- session.like_by_tags(["marketing"], amount=10)
- session.follow_user_followers(['kajetanhubner'], amount=10, randomize=False, sleep_delay=60)
- session.unfollow_users(amount=126, nonFollowers=True, style="RANDOM", unfollow_after=42*60*60, sleep_delay=655)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement