This commit is contained in:
Jeffrey Serio 2024-07-27 11:39:12 -05:00
parent b0498baf8a
commit 56beec24c2
2 changed files with 5 additions and 4 deletions

8
afw.py
View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""archive-fandom-wiki """archive-fandom-wiki
@ -10,7 +10,7 @@ Options:
-h --help Show this help message. -h --help Show this help message.
Examples: Examples:
afw dishonored https://breezewiki.nirn.quest afw dishonored https://breezewiki.hyperreal.coffee
afw residentevil afw residentevil
""" """
@ -43,7 +43,7 @@ class FandomWiki:
def __init__(self, name: str): def __init__(self, name: str):
self.name = name self.name = name
self.canonical_url = f"https://{name}.fandom.com" self.canonical_url = f"https://{name}.fandom.com"
self.breezewiki_url = "https://breezewiki.nirn.quest" self.breezewiki_url = "https://breezewiki.hyperreal.coffee"
self.site_dir = Path(f"{name}.fandom.com") self.site_dir = Path(f"{name}.fandom.com")
self.images_dir = self.site_dir.joinpath("images") self.images_dir = self.site_dir.joinpath("images")
@ -239,6 +239,6 @@ if __name__ == "__main__":
site = FandomWiki(args["<fandom>"]) site = FandomWiki(args["<fandom>"])
if args["<breezewiki_instance>"]: if args["<breezewiki_instance>"]:
site.set_breezewiki_instance(args["<breezewiki_instance>"]) site.set_breezewiki_url(args["<breezewiki_instance>"])
site.archive_site() site.archive_site()

View File

@ -2,6 +2,7 @@
set -e set -e
# shellcheck disable=SC1091
. /venv/bin/activate . /venv/bin/activate
exec /afw "$@" exec /afw "$@"