From a02ab12a62dc1d3d6e9bd0db42f8616ca6a395f1 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Thu, 11 Jul 2024 17:00:43 +0200 Subject: [PATCH] Update main.py --- main.py | 10 ++++++---- requirements.txt | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 requirements.txt diff --git a/main.py b/main.py index efc3a21..e601b06 100644 --- a/main.py +++ b/main.py @@ -54,9 +54,11 @@ def search_site(SITE): ) -if len(sys.argv) > 1: - for site in sys.argv[1:]: - search_site(site) +if len(sys.argv) == 1: + sites = ["grenoble", "lille", "luxembourg", "lyon", "nancy", "nantes", "rennes", "sophia", "strasbourg", "toulouse"] else: - search_site("rennes") + sites = sys.argv[1:] + +for site in sites: + search_site(site) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3288e92 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +requests +