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 +