do not replace dashes as it will continuously download files
This commit is contained in:
parent
9dc69fbaff
commit
19f550aa11
@ -98,7 +98,7 @@ def download_pdf(pdf_link):
|
||||
return
|
||||
|
||||
file_name = os.path.basename(urlparse(actual_file_url).path) or "downloaded_file.pdf"
|
||||
file_name = file_name.replace('%20', '-') # Replace '%20' with dashes
|
||||
#file_name = file_name.replace('%20', '-') # Replace '%20' with dashes
|
||||
data_dir = os.path.join(SCRIPT_DIR, "data")
|
||||
file_path = os.path.join(data_dir, file_name)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user