|
| 1 | +from instapy import InstaPy |
| 2 | +from instapy import smart_run |
| 3 | + |
| 4 | +username = '***************' |
| 5 | +password = '***************' |
| 6 | + |
| 7 | +profile = InstaPy(username= username, |
| 8 | + password= password, |
| 9 | + headless_browser= False, |
| 10 | + browser_executable_path= r"C:\Program Files\Mozilla Firefox\firefox.exe") |
| 11 | + |
| 12 | +with smart_run(profile): |
| 13 | + profile.set_relationship_bounds(enabled=True, |
| 14 | + delimit_by_numbers=True, |
| 15 | + max_followers=1000, |
| 16 | + min_followers=70, |
| 17 | + min_following=50) |
| 18 | + |
| 19 | + profile.set_mandatory_language(enabled=True, character_set=['ENGLISH']) |
| 20 | + |
| 21 | + profile.set_do_follow(True, percentage=10, times=2) |
| 22 | + |
| 23 | + profile.set_do_like(enabled=True, percentage=70) |
| 24 | + profile.like_by_tags(['coding', 'programming', 'computerscience', 'webdevelopment'], media='Photo') |
| 25 | + |
| 26 | + profile.set_do_comment(enabled=True, percentage=25) |
| 27 | + profile.set_delimit_commenting(enabled=True, max_comments=32, min_comments=10) |
| 28 | + profile.set_comments(['Awesome', 'Really Cool', 'I like your stuff']) |
| 29 | + |
| 30 | + profile.set_comments(['Nice work!'], media='Photo') |
| 31 | + profile.set_comments(['Great work!'], media='Video') |
| 32 | + profile.set_comments(['Nice work! @{}'], media='Photo') |
| 33 | + |
| 34 | + profile.set_dont_like(['politics']) |
| 35 | + |
0 commit comments