-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (23 loc) · 820 Bytes
/
main.py
File metadata and controls
29 lines (23 loc) · 820 Bytes
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
import os
from authentication import *
from utils import *
from RedditRefresh import RedditRefresh
def main():
os.system('cls' if os.name == 'nt' else 'clear')
print("Welcome to RedditRefresh!\n")
user_mode = display_mode_menu()
user_content = diplay_content_menu()
criteria_subreddit = ''
criteria_from_date = ''
criteria_to_date = ''
criteria_subreddit = askForSubReddit()
criteria_from_date = askFromDate()
criteria_to_date = askToDate(criteria_from_date)
confirmation = True if askForConfirmation(user_mode) == 1 else False
if confirmation:
redditRefresh = RedditRefresh(user_mode, user_content, criteria_subreddit, criteria_from_date, criteria_to_date)
redditRefresh.executeQuery()
else:
main()
if __name__ == "__main__":
main()