feat: add residential proxy configuration for web crawling and YouTube transcript fetching

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-02-05 20:44:13 -08:00
parent eaa0060def
commit 1511c26ef5
12 changed files with 251 additions and 16 deletions

View file

@ -52,8 +52,8 @@ def parse_date_flexible(date_str: str) -> datetime:
# Try ISO format as fallback
try:
return datetime.fromisoformat(date_str.replace("Z", "+00:00"))
except ValueError:
raise ValueError(f"Unable to parse date: {date_str}")
except ValueError as err:
raise ValueError(f"Unable to parse date: {date_str}") from err
async def check_duplicate_document_by_hash(