from lxml import etree import urllib.request import os from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument("url", type=str) parser.add_argument("output", type=str) args = parser.parse_args() URL = args.url DIR = args.output if not os.path.exists(DIR): os.makedirs(DIR) os.makedirs(os.path.join(DIR, "articles"), exist_ok=True) FILE = open(os.path.join(DIR, "index.html"), "w") print("", file=FILE) print("", file=FILE) print("", file=FILE) print("RSS Feed", file=FILE) print("", file=FILE) print("", file=FILE) print("", file=FILE) print("

RSS Feed

", file=FILE) print("", file=FILE) print("", file=FILE) print("", file=FILE) FILE.close()