Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # imports
- from instapy import InstaPy
- from instapy import smart_run
- # login credentials
- insta_username = 'your_username' # <--- enter your username here
- insta_password = 'your_password' # <--- enter your password here
- # 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=4600,
- min_followers=45,
- min_following=77)
- session.set_dont_include(["friend1", "friend2", "friend3"])
- session.set_dont_like(["pizza", "#store"])
- # activity
- session.like_by_tags(["natgeo"], amount=10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement