Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
InstagramBot
  • Loading branch information
larymak authored Apr 20, 2021
commit a7a3252784401d14507d4dafcf35b1aee3b88ca7
35 changes: 35 additions & 0 deletions InstagramBot/instagram.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from instapy import InstaPy
from instapy import smart_run

username = '***************'
password = '***************'

profile = InstaPy(username= username,
password= password,
headless_browser= False,
browser_executable_path= r"C:\Program Files\Mozilla Firefox\firefox.exe")

with smart_run(profile):
profile.set_relationship_bounds(enabled=True,
delimit_by_numbers=True,
max_followers=1000,
min_followers=70,
min_following=50)

profile.set_mandatory_language(enabled=True, character_set=['ENGLISH'])

profile.set_do_follow(True, percentage=10, times=2)

profile.set_do_like(enabled=True, percentage=70)
profile.like_by_tags(['coding', 'programming', 'computerscience', 'webdevelopment'], media='Photo')

profile.set_do_comment(enabled=True, percentage=25)
profile.set_delimit_commenting(enabled=True, max_comments=32, min_comments=10)
profile.set_comments(['Awesome', 'Really Cool', 'I like your stuff'])

profile.set_comments(['Nice work!'], media='Photo')
profile.set_comments(['Great work!'], media='Video')
profile.set_comments(['Nice work! @{}'], media='Photo')

profile.set_dont_like(['politics'])