2020-10-12 14:11:55 +02:00
|
|
|
#!/usr/bin/env python
|
2020-10-12 22:26:21 +02:00
|
|
|
from cli import cli
|
|
|
|
from downloader import downloader
|
|
|
|
from file import write_to_file
|
|
|
|
from header import Header
|
|
|
|
|
2020-10-12 14:11:55 +02:00
|
|
|
|
|
|
|
def main():
|
2020-10-12 22:26:21 +02:00
|
|
|
args = cli()
|
|
|
|
print(args.topics)
|
|
|
|
article = downloader(args.URL)
|
|
|
|
header = Header(article, args.topics)
|
|
|
|
write_to_file(article, header.build_header())
|
2020-10-12 14:11:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|