-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
28 lines (22 loc) · 916 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from InstagramBot import InstagramBot
username = "YOUR USERNAME"
password = "YOUR PASSWORD"
bot = InstagramBot("YOUR USERNAME", "YOUR PASSWORD")
bot.login()
TotalLikes=0
TotalFollows=0
hashtags = ["cats","dogs"]
for hashtag in hashtags:
nLikes=0
nFollows=0
arrayLikesFollows = bot.bot_by_hashtag(hashtag, 12, 4) #hashtag, 1 like ogni 12 secondi, 1 possibilitá su 4 di seguire chi ha messo la foto(25% di probabilià)
nLikes += arrayLikesFollows[0]
nFollows += arrayLikesFollows[1]
TotalLikes +=nLikes
TotalFollows +=nFollows
print("You put: " + str(nLikes) + " Likes and " + str(nFollows) +" Follows for the Hashtag: " + str(hashtag))
print("This session you put: " + str(TotalLikes) + " Likes and " + str(TotalFollows) +" Follows" )
bot.goToFollowing("YOUR PASSWORD")
print("Start to unfollow " + str(1200) + " People")
bot.unFollow(1200)
bot.closeBrowser()