Spaces:
Sleeping
Sleeping
Claude
Claude Sonnet 5
Add rate limiting, tests, better extraction, and HF auto-deploy
ebab0e2 unverified Download app/errors.py from Almaatla/web-scraper: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/spaces/Almaatla/web-scraper/resolve/main/app/errors.py
- Command line
-
hf download hf://spaces/Almaatla/web-scraper/app/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/Almaatla/web-scraper/resolve/main/app/errors.py
276 Bytes
| class ScrapeError(Exception): | |
| """Raised for any scrape-request failure that maps to a specific HTTP status.""" | |
| def __init__(self, status_code: int, message: str): | |
| super().__init__(message) | |
| self.status_code = status_code | |
| self.message = message | |