Update Scraper.py
Browse files- Scraper.py +0 -2
Scraper.py
CHANGED
|
@@ -22,8 +22,6 @@ def download_loc(link):
|
|
| 22 |
if not os.path.isdir('PDF Cases/' + foldername):
|
| 23 |
print("making dir")
|
| 24 |
os.makedirs('PDF Cases/' + foldername, exist_ok=True)
|
| 25 |
-
print(os.path.isdir('PDF Cases/' + foldername))
|
| 26 |
-
print([x[0] for x in os.walk('PDF Cases/')])
|
| 27 |
name = 'PDF Cases/' + foldername + '/' + "opinion.pdf"
|
| 28 |
with open(name, 'wb') as f:
|
| 29 |
for chunk in r.iter_content(chunk_size=1024):
|
|
|
|
| 22 |
if not os.path.isdir('PDF Cases/' + foldername):
|
| 23 |
print("making dir")
|
| 24 |
os.makedirs('PDF Cases/' + foldername, exist_ok=True)
|
|
|
|
|
|
|
| 25 |
name = 'PDF Cases/' + foldername + '/' + "opinion.pdf"
|
| 26 |
with open(name, 'wb') as f:
|
| 27 |
for chunk in r.iter_content(chunk_size=1024):
|