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))