fix placement variable
This commit is contained in:
parent
6794f77df2
commit
4de811c607
@ -5,6 +5,10 @@ from bs4 import BeautifulSoup
|
|||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
import requests, os
|
import requests, os
|
||||||
|
|
||||||
|
BACKUP_DIR = "backup"
|
||||||
|
URL = "www.clarissariviere.com"
|
||||||
|
|
||||||
|
|
||||||
def mkdir_path(path_dir):
|
def mkdir_path(path_dir):
|
||||||
if not os.path.exists(path_dir):
|
if not os.path.exists(path_dir):
|
||||||
makedir = []
|
makedir = []
|
||||||
@ -15,11 +19,8 @@ def mkdir_path(path_dir):
|
|||||||
if not os.path.exists(repath):
|
if not os.path.exists(repath):
|
||||||
os.mkdir(repath)
|
os.mkdir(repath)
|
||||||
|
|
||||||
BACKUP_DIR = "backup"
|
|
||||||
|
|
||||||
mkdir_path(BACKUP_DIR)
|
mkdir_path(BACKUP_DIR)
|
||||||
|
|
||||||
URL = "www.clarissariviere.com"
|
|
||||||
|
|
||||||
page = requests.get("https://{0}".format(URL))
|
page = requests.get("https://{0}".format(URL))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user