-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.py
50 lines (43 loc) · 1.32 KB
/
menu.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
from __main__ import igClient
class Home:
opts = [
{
'displayText': 'See & Export your followers list',
'action': igClient.exportFollowers
},
{
'displayText': 'See & Export your following list',
'action': igClient.exportFollowing
},
{
'displayText': 'Compare your followers & following lists',
'action': igClient.compareFollowersAndFollowing
},
{
'displayText': 'Exit',
'action': exit
}
]
def display() -> int:
for i, opt in enumerate(Home.opts):
print(f'\t{i+1}) {opt["displayText"]}')
return len(Home.opts)
class FolloweeComparison:
opts = [
{
'displayText': 'Export followers that you don\'t follow',
'value': 'export_followers_you_dont_follow'
},
{
'displayText': 'Export followings that don\'t follow you',
'value': 'export_followings_that_dont_follow_you'
},
{
'displayText': 'Export all',
'value': 'export_all'
}
]
def display() -> int:
for i, opt in enumerate(FolloweeComparison.opts):
print(f'\t{i+1}) {opt["displayText"]}')
return len(FolloweeComparison.opts)