-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
77 lines (65 loc) · 2.39 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
74
75
76
77
from colors import mprint, bcolors
from utils import clrscr
from utils import pars_curl, write_session_files, read_session_files
def main():
mprint(
"""
⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠁⠀⠀⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣷⣤⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠉⠉⠉⣿⣿⣿⠉⠉⠉⠟⠉⠉⠉⠻⣿⣿⣿⣿
⣿⣿⣿⣿⠀⠀⠀⣿⣿⣿⠀⠀⠀⣠⣤⡀⠀⠀⢹⣿⣿⣿
⣿⣿⣿⣿⠀⠀⠀⣿⣿⣿⠀⠀⠀⣿⣿⡇⠀⠀⢸⣿⣿⣿
⣿⣿⣿⣿⠀⠀⠀⣿⣿⣿⠀⠀⠀⣿⣿⡇⠀⠀⢸⣿⣿⣿
⣿⣿⣿⣿⣀⣀⣀⣿⣿⣿⣀⣀⣀⣿⣿⣇⣀⣀⣼⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿
""",
color=bcolors.BLUE,
)
mprint("welcome to parazok linkedin helper!\n\n\n", header=True)
cookies, headers = read_session_files()
mprint('press "ENTER" to continue..')
input()
while True:
clrscr()
mprint("what do you want to do?\n", header=True)
mprint("""
1 process curl.txt file.
2 go to bulk unconnector menu.
3 go to follower evener menu.
0 to close program.
""")
raw_i = input("select: ")
if raw_i not in ('1', '0') and (not cookies or not headers):
clrscr()
mprint("you should select option 1 first!",
color=bcolors.FAIL)
input('press "ENTER" to continue!')
elif raw_i == '1':
r = pars_curl("./curl.txt")
if not r:
mprint("bad curl or no curl.txt file! make sure of it and try again.",
color=bcolors.FAIL)
else:
write_session_files(*r)
cookies, headers = r
print(cookies)
print(headers)
input('press "ENTER" to continue!')
elif raw_i == '2':
pass
elif raw_i == '3':
pass
elif raw_i == '0':
clrscr()
mprint("\n\nBye Bye..!\n\n")
return 1
else:
clrscr()
print("wrong input, try again!")
input('press "ENTER" to continue!')
clrscr()
if __name__ == "__main__":
main()