-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (31 loc) · 1.42 KB
/
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
29
30
31
32
33
34
35
36
37
38
import sys
from Config import Config
username = str(Config.GetConfig("Instagram", "username"))
password = str(Config.GetConfig("Instagram", "password"))
print("Username: ", username)
print("Password: ", password)
argumentList = sys.argv[1:]
if len(argumentList) > 0:
if argumentList[0] == "FollowUsers":
try:
from Service.FollowUsers import FollowUsers
mode = argumentList[1] #If there is a mod TODO
#mode = int(argumentList[2]) #If there is a mod TODO
followUsers = FollowUsers()
followUsers.start(username = username, password = password, mode = mode)
except Exception as ex:
print("FollowUsers couldn't run! | ", ex)
elif argumentList[0] == "UserDetectFromHashtag":
try:
from Service.UserDetectFromHashtag import UserDetectFromHashtag
userDetectFromHashtag = UserDetectFromHashtag
userDetectFromHashtag.start(username = username, password = password)
except Exception as ex:
print("UserDetectFromHashtag couldn't run! | ", ex)
else:
print("Service not found")
else:
print("Input <ServiceName> Parameter")
from Service.UserDetectFromHashtag import UserDetectFromHashtag
userDetectFromHashtag = UserDetectFromHashtag
userDetectFromHashtag.start(username = username, password = password)