Extract main method

This commit is contained in:
Julius Freudenberger 2023-05-01 11:19:36 +02:00
parent b0d3a9d4fb
commit 6dbcf39484

View file

@ -21,7 +21,11 @@ def get_urls() -> [str]:
return urls_file.readlines()
if __name__ == "__main__":
def main():
attractions = parse_locations(get_urls())
for attraction in attractions:
export_attraction(attraction)
if __name__ == "__main__":
main()