-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now the project is layed out professionally.
I don't know if i like it to be honest
- Loading branch information
1 parent
a4bbd07
commit 135c8b0
Showing
5 changed files
with
57 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import argparse | ||
|
||
def get_args(): | ||
parser = argparse.ArgumentParser( | ||
description='API to download lectures off msc-mu.com') | ||
parser.add_argument( | ||
'-t', '--category', type=int, metavar='', help='to specify category number' | ||
) | ||
parser.add_argument( | ||
'-c', '--course', type=int, metavar='', help='to specify course number' | ||
) | ||
parser.add_argument( | ||
'-f', '--folder', type=str, metavar='', help='to specify destination folder' | ||
) | ||
parser.add_argument( | ||
'-v', '--verbose', action='store_true', help='Increase Verbosity' | ||
) | ||
return parser.parse_args() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FOLDER = '/dox/med' | ||
|
||
HEADERS = headers = { | ||
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (HTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" | ||
} | ||
DECOR = ' \033[34;1m::\033[0m ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.