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
|
||||
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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user