-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·31 lines (28 loc) · 939 Bytes
/
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
from scraper import *
from editor import *
from datetime import date
import os
#import shutil
def printBanner():
banner ="""
_ _ _ _
| | | | | | (_)
| | | |_ __ ___ _ __ ___ __ _| |_ ___ _____
| | | | '_ \ / __| '__/ _ \/ _` | __| \ \ / / _ \\
| |__| | | | | (__| | | __/ (_| | |_| |\ V / __/
\____/|_| |_|\___|_| \___|\__,_|\__|_| \_/ \___|
/ ____| | |
| | _ __ ___ __ _| |_ ___ _ __
| | | '__/ _ \/ _` | __/ _ \| '__|
| |____| | | __/ (_| | || (_) | |
\_____|_| \___|\__,_|\__\___/|_|
"""
print(banner)
if __name__ == "__main__":
printBanner()
date = date.today().strftime("%b-%d-%Y")
print("Today is {i}. starting new cycle...\n".format(i=date))
path = os.getcwd()+"/files/" + date
os.mkdir(path)
Scraper(path)
Editor(path)