Extract main method
This commit is contained in:
parent
b0d3a9d4fb
commit
6dbcf39484
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
@ -21,7 +21,11 @@ def get_urls() -> [str]:
|
||||||
return urls_file.readlines()
|
return urls_file.readlines()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
attractions = parse_locations(get_urls())
|
attractions = parse_locations(get_urls())
|
||||||
for attraction in attractions:
|
for attraction in attractions:
|
||||||
export_attraction(attraction)
|
export_attraction(attraction)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in a new issue