Files
2026-11-01 05:42:04 +03:00

61 lines
1.8 KiB
Bash

# Copy to .env and fill in. Never commit .env.
#
# anonymous (default) or account
AVITO_ACCESS_MODE=anonymous
# If anonymous is blocked, try account cookies when they are configured.
AVITO_ACCOUNT_FALLBACK=true
# auto = JSON first, then HTML fallback. browser = real Chrome via CDP.
# html = server-rendered HTML. json = JSON endpoint only.
AVITO_SEARCH_PROVIDER=auto
AVITO_HTML_SEARCH_PATH=/moskva/telefony
AVITO_BROWSER_CDP_PORT=9222
AVITO_BROWSER_PROFILE=var/chrome-profile
AVITO_BROWSER_HEADLESS=false
AVITO_BROWSER_TIMEOUT_SEC=30
AVITO_BROWSER_PAGE_DELAY_SEC=8
# Cookie header from a logged-in browser session on avito.ru.
# Export only the avito.ru cookies, keep the value on one line.
AVITO_COOKIE=
# Alternative: path to a Netscape cookies.txt file with avito.ru cookies.
AVITO_COOKIE_FILE=
# Must match the browser that produced the cookies. If empty, the
# impersonated Chrome user agent is used.
AVITO_USER_AGENT=
# Optional. Example: http://user:pass@127.0.0.1:8080
AVITO_PROXY=
# Moscow = 637640. Find your location id in the Avito URL or filter payload.
AVITO_LOCATION_ID=637640
# Optional category filter.
AVITO_CATEGORY_ID=
# Conservative defaults: one request every 2.5-6 seconds.
AVITO_REQUEST_DELAY_MIN=2.5
AVITO_REQUEST_DELAY_MAX=6.0
AVITO_TIMEOUT_SEC=25
AVITO_MAX_PAGES=3
# curl_cffi impersonation profile, e.g. chrome, chrome124, safari.
AVITO_IMPERSONATE=chrome
AVITO_DATA_DIR=var
# SQLite by default. For Postgres use:
# AVITO_DATABASE_URL=postgresql+asyncpg://avito:avito@localhost:5432/avito
AVITO_DATABASE_URL=sqlite+aiosqlite:///var/avito.db
# Telegram notifications (optional). Leave empty to keep notifications pending.
AVITO_TELEGRAM_BOT_TOKEN=
AVITO_TELEGRAM_CHAT_ID=
AVITO_WORKER_POLL_INTERVAL_SEC=30
AVITO_WORKER_MAX_SEARCHES_PER_CYCLE=5
AVITO_NOTIFICATION_MAX_ATTEMPTS=3