-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_console_follow_unfollow.py
42 lines (35 loc) · 1.19 KB
/
main_console_follow_unfollow.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
from config import Config
from src.manager_follow_unfollow import MainFollowUnfollow
from src.utils.logger import logger
def main_console_follow_unfollow():
config = Config()
main_app = MainFollowUnfollow(config)
while True:
print("\nChoose an action:")
print("1. Follow people")
print("2. Unfollow people")
print("3. Follow back people")
print("4. Linkedin profiles")
print("5. X profiles")
print("6. Unstar non followers")
print("7. Exit")
choice = input("Enter your choice: ")
if choice == '1':
main_app.follow_people()
elif choice == '2':
main_app.unfollow_people()
elif choice == '3':
main_app.follow_back()
elif choice == '4':
main_app.linkedin_profiles()
elif choice == '5':
main_app.x_profiles()
elif choice == '6':
main_app.unstar_non_followers_repos()
elif choice == '7':
logger.info("Exiting the program.")
break
else:
logger.warning("Invalid choice. Please enter 1, 2, 3 or 4.")
if __name__ == "__main__":
main_console_follow_unfollow()