Boyd Kane
commited on
Commit
·
b89867e
1
Parent(s):
4e8b9a5
Update dl archive.org script
Browse files
src/download_archive_dot_org.py
CHANGED
|
@@ -240,17 +240,17 @@ def scrape_month_cursor_loop(
|
|
| 240 |
|
| 241 |
|
| 242 |
def run() -> None:
|
| 243 |
-
database_path = "archive.org.db"
|
| 244 |
endpoint = "https://archive.org/services/search/v1/scrape"
|
| 245 |
|
| 246 |
-
start_date = dt.date(
|
| 247 |
-
end_date = dt.date(
|
| 248 |
|
| 249 |
batch_count = 10000 # scraping API requires count >= 100
|
| 250 |
request_timeout_seconds = 20.0
|
| 251 |
request_retries = 5
|
| 252 |
writer_commit_batch_size = 500
|
| 253 |
-
max_workers =
|
| 254 |
|
| 255 |
fields = ["creator", "date", "downloads", "identifier", "item_size", "subject", "title"]
|
| 256 |
|
|
|
|
| 240 |
|
| 241 |
|
| 242 |
def run() -> None:
|
| 243 |
+
database_path = "data/archive-dot-org/archive.org.1900s.db"
|
| 244 |
endpoint = "https://archive.org/services/search/v1/scrape"
|
| 245 |
|
| 246 |
+
start_date = dt.date(1900, 1, 1)
|
| 247 |
+
end_date = dt.date(1950, 1, 1)
|
| 248 |
|
| 249 |
batch_count = 10000 # scraping API requires count >= 100
|
| 250 |
request_timeout_seconds = 20.0
|
| 251 |
request_retries = 5
|
| 252 |
writer_commit_batch_size = 500
|
| 253 |
+
max_workers = 8
|
| 254 |
|
| 255 |
fields = ["creator", "date", "downloads", "identifier", "item_size", "subject", "title"]
|
| 256 |
|