From 0792e060d8dc8425081276f39390d8ca9d1d4848 Mon Sep 17 00:00:00 2001 From: Qulu Date: Sat, 2 Feb 2019 15:58:55 +0400 Subject: [PATCH] Simplify quickstart.py much more. Remove - `set_relationship_bounds()` - `set_dont_like()` - login credentials example - headless mode example --- quickstart.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/quickstart.py b/quickstart.py index da20ddc34..94a29392b 100644 --- a/quickstart.py +++ b/quickstart.py @@ -1,33 +1,21 @@ """ Quickstart script for InstaPy usage """ + # imports from instapy import InstaPy from instapy import smart_run from instapy import set_workspace -# login credentials -insta_username = '' -insta_password = '' # set workspace folder at desired location (default is at your home folder) set_workspace(path=None) # 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) +session = InstaPy() with smart_run(session): """ Activity flow """ # general settings - session.set_relationship_bounds(enabled=True, - delimit_by_numbers=True, - max_followers=4590, - 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)