14 lines
395 B
Python
14 lines
395 B
Python
"""Common types and constants para data fetchers."""
|
|
|
|
|
|
class FetcherError(Exception):
|
|
"""Raised when a fetcher fails. Caught por runner para fail-soft."""
|
|
pass
|
|
|
|
|
|
# User-Agent para requests HTTP (algunas APIs como Nominatim lo requieren)
|
|
USER_AGENT = "AR-House/0.1.0 (real-estate-analysis-tool; +https://localhost)"
|
|
|
|
# Timeouts default
|
|
DEFAULT_TIMEOUT = 15 # segundos para requests HTTP
|