17 lines
445 B
Python
17 lines
445 B
Python
"""Avito-specific exceptions для anti-bot detection."""
|
|
|
|
|
|
class AvitoError(Exception):
|
|
"""Base для всех Avito scraper exceptions."""
|
|
|
|
|
|
class AvitoBlockedError(AvitoError):
|
|
"""HTTP 403 от Avito — IP-level block detected."""
|
|
|
|
|
|
class AvitoRateLimitedError(AvitoError):
|
|
"""HTTP 429 от Avito — rate limit triggered."""
|
|
|
|
|
|
class AvitoParseError(AvitoError):
|
|
"""Cannot parse Avito HTML structure (selector changes)."""
|