Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ Quickstart script for InstaPy usage """
- # imports
- from instapy import InstaPy
- from instapy import smart_run
- from instapy import set_workspace
- # set workspace folder at desired location (default is at your home folder)
- set_workspace(path=None)
- # get an InstaPy session!
- session = InstaPy(username="the_olivera",
- password="HA! GUESS WHAT? NOT A RETARD")
- with smart_run(session):
- """ Activity flow """
- # general settings
- session.set_dont_unfollow_active_users(enabled=True, posts=5)
- session.set_mandatory_language(enabled=True, character_set='LATIN')
- session.set_quota_supervisor(enabled=True, sleep_after=["likes", "comments_d", "follows", "unfollows", "server_calls_h"], sleepyhead=True, stochastic_flow=True, notify_me=True,
- peak_likes=(57, 585),
- peak_comments=(21, 182),
- peak_follows=(48, None),
- peak_unfollows=(35, 402),
- peak_server_calls=(None, 4700))
- # activity
- # session.like_by_tags(["natgeo"], amount=10)
- #Follow a certain couple of accounts
- big_guys = ['natgeo.la',
- 'natgeoexpeditions',
- 'natgeotravel',
- 'natgeoyourshot',
- 'beautifuldestinations',
- 'natgeo',
- 'nature.and.everything.about.it',
- 'earthpix',
- 'earthfocus',
- 'hikeyourownlife',
- 'discoverearth',
- ]
- small_guys = ['backpackinglife',
- 'amaiysumochila',
- 'omelhormesdoano',
- 'hikeyourownlife',
- 'olharesdesampa',
- 'fotoxigenio_',
- 'travelingdreams101',
- 'siteculturasp',
- 'republic.of.symmetry',
- 'untitledphotoss',
- 'ligadosemsampa',
- 'sampaworld',
- '_photo_du_jour',
- 'adamkarnacz',
- 'gguillis',
- 'mylittlenorthwaleslife',
- 'parquesnacionales',
- 'pautagonialaska',
- 'aventuraslatam']
- tag_list=["chiloeisland",
- "chonchi",
- "ig_chile",
- "backpacksouthamerica",
- "natgeo100contest",
- "natgeoexpeditions",
- "natgeotravel",
- "omelhormesdoano",
- "republic_of_symmetry",
- "untitledphotos",
- "WildernessCulture",
- "nikon",
- "landscapephotography",
- "WildernessEarth",
- "chile",
- ]
- #Follow this list of important people
- session.follow_by_list(followlist = big_guys, times=1, sleep_delay=600, interact=False)
- #Follow this list of people who are interested in my tags but that aren't bots
- session.follow_user_followers(small_guys, amount=10, randomize=False, sleep_delay=60)
- #Follow some random people because why not?
- session.follow_by_tags(tag_list, amount=10)
- #Like some stuff so you seem alive
- session.like_by_tags(tag_list, amount=10)
- #Unfollow a certain couple of accounts
- session.unfollow_users(amount=200, customList=(True, big_guys, "all"), #Unfollow the big guys
- InstapyFollowed=(True, "nonfollowers"), #Unfollower the random people if they don't follow you back
- nonFollowers=True, #Clean my account (again, why not?)
- allFollowing=False, #I don't want this
- style="FIFO", unfollow_after=22*60*60, sleep_delay=600)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement