-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.py
87 lines (74 loc) · 2.23 KB
/
cli.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
78
79
80
81
82
83
84
85
86
from pyfiglet import Figlet
f = Figlet(font='slant')
from PyInquirer import Validator, ValidationError
print(f.renderText('ig - tools'))
from PyInquirer import style_from_dict, Token, prompt
print('''
********************************************************
* *
* Author: TH3-MA3STRO *
* Instagtam: @th3_ma3stro *
* GitHub: https://www.github.com/TH3-MA3STRO *
* Platform: Linux *
* *
********************************************************
''')
def styler():
style = style_from_dict({
Token.Separator: '#cc5454',
Token.QuestionMark: '#673ab7 bold',
Token.Selected: '#cc5454', # default
Token.Pointer: '#673ab7 bold',
Token.Instruction: '', # default
Token.Answer: '#f44336 bold',
Token.Question: '',
})
return style
def que1():
questions = [
{
'type': 'list',
'message': 'Select the tool you wish to you use:',
'name': 'tch',
'choices': [
{
'name': 'Tag-Spammer'
},
{
'name': 'Profile-Spammer'
},
{
'name': 'DP-Downloader'
}
]
}
]
answers = prompt(questions, style=styler())
return answers
def que2(a):
if a.lower() == 'tag-spammer':
question2 = [
{
'type': 'input',
'message': "Enter post's link: ",
'name': 'p_link'
}
]
elif a.lower() == 'profile-spammer':
question2 = [
{
'type': 'input',
'message': "Enter target profile's username: ",
'name': 'tar_uname'
}
]
elif a.lower() == 'dp-downloader':
question2 = [
{
'type': 'input',
'message': "Enter profile's username: ",
'name': 'username'
}
]
answers = prompt(question2, style=styler())
return answers