move the markdown.py file to __main__.py

This commit is contained in:
Andreas Zweili 2020-10-13 21:13:49 +02:00
parent ac1d5f8a2b
commit 1bb504d5b6
1 changed files with 4 additions and 5 deletions

View File

@ -1,13 +1,12 @@
#!/usr/bin/env python
from cli import cli
from downloader import downloader
from file import write_to_file
from header import Header
from url2markdown.cli import cli
from url2markdown.downloader import downloader
from url2markdown.file import write_to_file
from url2markdown.header import Header
def main():
args = cli()
print(args.topics)
article = downloader(args.URL)
header = Header(article, args.topics)
write_to_file(article, header.build_header())