Types & Aliases
Public type aliases used across the library. All are re-exported from the top-level perplexity_webui_scraper namespace.
CitationMode
perplexity_webui_scraper._internal.types.CitationMode
module-attribute
Controls how citation markers are rendered in the final answer.
"default"— leave[1],[2]… markers as-is."markdown"— convert markers to[1](url)Markdown links."clean"— strip all citation markers from the text.
SearchFocus
perplexity_webui_scraper._internal.types.SearchFocus
module-attribute
Selects the search/generation mode.
"web"— web search is enabled; sources are cited."writing"— no sources; purely generative response.
SourceFocus
perplexity_webui_scraper._internal.types.SourceFocus
module-attribute
Filters which source categories Perplexity searches.
"web"— general web results."academic"— scholarly / academic databases."social"— social media posts and discussions."finance"— SEC EDGAR filings and financial data."all"— combine web, academic, and social.
TimeRange
perplexity_webui_scraper._internal.types.TimeRange
module-attribute
Recency filter applied to web search results.
"all"— no time restriction."day"/"week"/"month"/"year"— restrict to that window.
LogLevel
perplexity_webui_scraper._internal.types.LogLevel
module-attribute
Log verbosity level.
"disabled"— no log output (default)."debug"through"critical"— standard severity levels.
FileInput
perplexity_webui_scraper._internal.types.FileInput
module-attribute
Accepted file inputs for Conversation.ask(files=...).
str | PathLike[str]— local filesystem path; file is read at upload time.bytes— raw bytes; filename defaults to"file", MIME auto-detected.tuple[bytes, str]—(data, filename); MIME guessed from filename.tuple[bytes, str, str]—(data, filename, mimetype); fully explicit.