Update extract_text.py
Browse files- extract_text.py +1 -0
extract_text.py
CHANGED
|
@@ -12,6 +12,7 @@ def download_pdf(url, id):
|
|
| 12 |
response.raise_for_status()
|
| 13 |
with open(file_path, "wb") as file:
|
| 14 |
file.write(response.content)
|
|
|
|
| 15 |
except Exception as e:
|
| 16 |
print(f"Error downloading PDF: {e}")
|
| 17 |
return None
|
|
|
|
| 12 |
response.raise_for_status()
|
| 13 |
with open(file_path, "wb") as file:
|
| 14 |
file.write(response.content)
|
| 15 |
+
print(f"Saving PDF to: {file_path}")
|
| 16 |
except Exception as e:
|
| 17 |
print(f"Error downloading PDF: {e}")
|
| 18 |
return None
|