Configuration
Client Configuration
perplexity_webui_scraper.config.client.ClientConfig
Bases: BaseModel
Immutable HTTP client and resilience settings.
| ATTRIBUTE | DESCRIPTION |
|---|---|
timeout |
Request timeout in seconds. Defaults to 3600 (1 hour) for long queries.
TYPE:
|
impersonate |
Browser fingerprint profile (e.g.,
TYPE:
|
max_retries |
Max retry attempts on transient errors.
TYPE:
|
retry_base_delay |
Initial backoff delay in seconds.
TYPE:
|
retry_max_delay |
Maximum backoff delay cap in seconds.
TYPE:
|
retry_jitter |
Jitter factor (0-1) to randomize retry delays.
TYPE:
|
rotate_fingerprint |
Rotates browser fingerprint on each retry if
TYPE:
|
requests_per_second |
Max request rate. Set to
TYPE:
|
max_init_query_length |
Truncates init query length to avoid HTTP 414.
TYPE:
|
logging_level |
Log verbosity. Defaults to
TYPE:
|
log_file |
Path to write logs.
TYPE:
|
Conversation Configuration
perplexity_webui_scraper.config.conversation.ConversationConfig
Bases: BaseModel
Settings for a single conversation thread.
All fields are optional and fall back to sensible defaults. Construct a
ConversationConfig and pass it to client.create_conversation().
| ATTRIBUTE | DESCRIPTION |
|---|---|
model |
Model ID string (e.g.,
TYPE:
|
search_focus |
Search mode constraint.
TYPE:
|
source_focus |
Filter categories for search (e.g.,
TYPE:
|
time_range |
Recency constraint for web results (e.g.,
TYPE:
|
citation_mode |
Determines how inline citations are returned.
TYPE:
|
language |
BCP-47 language tag for the response (e.g.,
TYPE:
|
timezone |
IANA timezone string for localization (e.g.,
TYPE:
|
coordinates |
Geographic location constraints (latitude/longitude).
TYPE:
|
save_to_library |
If
TYPE:
|
space_uuid |
UUID of a Perplexity Space (collection) to post into.
TYPE:
|