add a sleep of 30 sec after each
Browse files- daily_papers_sync.py +2 -0
daily_papers_sync.py
CHANGED
|
@@ -19,6 +19,7 @@ from __future__ import annotations
|
|
| 19 |
|
| 20 |
import os
|
| 21 |
import re
|
|
|
|
| 22 |
from datetime import datetime, timedelta, timezone
|
| 23 |
from typing import Any, Optional
|
| 24 |
from urllib.parse import urlparse
|
|
@@ -226,6 +227,7 @@ def main() -> None:
|
|
| 226 |
stats["indexed"] += 1
|
| 227 |
just_indexed = True
|
| 228 |
print(f"INDEXED: {arxiv_id}")
|
|
|
|
| 229 |
else:
|
| 230 |
stats["not_found"] += 1
|
| 231 |
print(f"SKIP: {arxiv_id} - could not index")
|
|
|
|
| 19 |
|
| 20 |
import os
|
| 21 |
import re
|
| 22 |
+
import time
|
| 23 |
from datetime import datetime, timedelta, timezone
|
| 24 |
from typing import Any, Optional
|
| 25 |
from urllib.parse import urlparse
|
|
|
|
| 227 |
stats["indexed"] += 1
|
| 228 |
just_indexed = True
|
| 229 |
print(f"INDEXED: {arxiv_id}")
|
| 230 |
+
time.sleep(30)
|
| 231 |
else:
|
| 232 |
stats["not_found"] += 1
|
| 233 |
print(f"SKIP: {arxiv_id} - could not index")
|