-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
73 lines (66 loc) · 2.93 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from getpass import getpass
from colorama import Fore
from instagram import Instagram
print(Fore.GREEN + """\n
/' /' /'
--/'-- /' --/'--
O ,____ ____ /' ____ ____ ____ ____ ,__________ /'__ ____ /'
/' /' ) /' )--/' /' ) /' ) )' )--/' ) /' ) ) /' ) /' )--/'
/' /' /' '---, /' /' /' /' /' /' /' /' /' /' /' /' /' /' /' /'
(__/' /(__(___,/ (__(___,/(__(___,/(__/' (___,/(__/' /' /(__ (___,/(__(___,/' (__
/' -------
/ /'
(___,/' twitter alii76tt
""")
print("Please Login!")
username = input("Your Username: ")
password = getpass()
print("\nPlease Wait. Log in...")
instagram = Instagram(username=username, password=password)
instagram.signIn()
while True:
try:
choice = int(input("""
Menu\n
1- Get Followers\n
2- Get Following\n
3- Folow User\n
4- UnFollow User\n
5- Who Don't Follow Me\n
6- Whatch Story\n
7- Exit\n
Choice: """))
if choice == 1:
instagram.getFollowers()
elif choice == 2:
instagram.getFollowing()
elif choice == 3:
howMany = int(input("How many people will you follow: "))
if howMany == 1:
user = input("Username: ")
instagram.followUser(username=user)
elif howMany > 1:
for i in range(howMany):
user = input("Username: ")
instagram.followUser(username=user)
elif choice == 4:
howMany = int(input("How many people will you unfollow: "))
if howMany == 1:
user = input("Username: ")
instagram.unFollowUser(username=user)
elif howMany > 1:
for i in range(howMany):
user = input("Username: ")
instagram.unFollowUser(username=user)
elif choice == 5:
instagram.whoDontFollowMe()
elif choice == 6:
user = input("Username: ")
instagram.whatchStory(username = user)
elif choice == 7:
break
else:
"You entered incorrectly!"
except KeyboardInterrupt:
print("\n" + "Goodbye, Friend!")
quit()