From 4de811c607b86f9a7a09a847714cefd0ff6dd684 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 4 Mar 2023 18:45:32 +0100 Subject: [PATCH] fix placement variable --- web_scrap.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web_scrap.py b/web_scrap.py index c381606..c43c2a5 100644 --- a/web_scrap.py +++ b/web_scrap.py @@ -5,6 +5,10 @@ from bs4 import BeautifulSoup from urllib.parse import urlparse import requests, os +BACKUP_DIR = "backup" +URL = "www.clarissariviere.com" + + def mkdir_path(path_dir): if not os.path.exists(path_dir): makedir = [] @@ -15,11 +19,8 @@ def mkdir_path(path_dir): if not os.path.exists(repath): os.mkdir(repath) -BACKUP_DIR = "backup" - mkdir_path(BACKUP_DIR) -URL = "www.clarissariviere.com" page = requests.get("https://{0}".format(URL))