From 6dbcf39484fdf8e4e1adbc8f198f6ac5b56b32b4 Mon Sep 17 00:00:00 2001 From: Julius Freudenberger Date: Mon, 1 May 2023 11:19:36 +0200 Subject: [PATCH] Extract main method --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index efc87c4..4d27de8 100644 --- a/main.py +++ b/main.py @@ -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()