diff --git a/get-fandom-wiki-urls b/get-fandom-wiki-urls index 29fdc6e..5b0024f 100755 --- a/get-fandom-wiki-urls +++ b/get-fandom-wiki-urls @@ -74,6 +74,14 @@ def get_urls(fandom: str) -> list(): return urls +def help_message(): + supported_wikis = ["cyberpunk", "dishonored", "dragonage", "forgottenrealms", "masseffect", "residentevil"] + print("Supply a fandom wiki name as arg1.\n") + print("Currently supported wikis:") + for wiki in supported_wikis: + print("- %s" % wiki) + + if __name__ == "__main__": if len(sys.argv) > 1: @@ -84,20 +92,16 @@ if __name__ == "__main__": urls = get_urls("dishonored") case "dragonage": urls = get_urls("dragonage") + case "forgottenrealms": + urls = get_urls("forgottenrealms") case "masseffect": urls = get_urls("masseffect") case "residentevil": urls = get_urls("residentevil") case _: - print("Enter a fandom wiki to scrape URLs from.") + help_message() for url in urls: print(url) else: - print("Please supply a fandom wiki name as arg1.") - print("Supported wikis:") - print("- cyberpunk") - print("- dishonored") - print("- dragonage") - print("- masseffect") - print("- residentevil") + help_message() diff --git a/gumstarred b/gumstarred old mode 100644 new mode 100755