Compare commits

...

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk e65e16d37b
Add basic arguments
--destination
--chapter-start
--notify
2021-06-24 23:21:36 +02:00
Lukáš Kucharczyk 5df275fba9
Add .editorconfig 2021-06-24 23:21:03 +02:00
2 changed files with 31 additions and 3 deletions

11
.editorconfig Normal file
View File

@ -0,0 +1,11 @@
root = true
[*]
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = false
charset = utf-8
[*.py]
indent_style = space
indent_size = 2

View File

@ -1,4 +1,21 @@
import requests """
Manga checker and downloader
"""
response = requests.get('https://httpbin.org/ip') import argparse
print('Code is {0}.'.format(response.status_code))
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description="Check for manga updates and download them."
)
parser.add_argument(
'-d', '--destination', type=str, required=True, help="Target destination where the download file should be saved."
)
parser.add_argument(
'-s', '--chapter-start', type=int, default=1, help="From which chapter should the program check."
)
parser.add_argument(
'-n', '--notify', type=str, default=None, help="Apprise notification string."
)
args = parser.parse_args()