Python scraper to extract AI responses from Perplexity's web interface.
Project description
📚 Full Documentation & Advanced Guide: https://henrique-coder.github.io/perplexity-webui-scraper/
What is this?
This library allows you to interact with Perplexity programmatically, start conversations, upload files, and stream responses back, all using the same web interface endpoints used by the browser, but powered by Python.
- Requirements: A Perplexity Pro or Max account, and your browser's Session Token.
- Key Features: Full latest model support (GPT-5.4, Opus 4.6, Deep Research), file attachments, asynchronous streaming, and an out-of-the-box MCP Server for AI agents.
Quick Start
1. Install
# Minimal installation (core library only)
uv add perplexity-webui-scraper
# With interactive session token fetcher (`rich` dependency)
uv add perplexity-webui-scraper[cli]
# With MCP Server support (`fastmcp` dependency)
uv add perplexity-webui-scraper[mcp]
2. Basic Example
from perplexity_webui_scraper import Perplexity
client = Perplexity(session_token="YOUR_TOKEN")
conversation = client.create_conversation()
conversation.ask("What is quantum computing?")
print(conversation.answer)
Disclaimer
This is an unofficial library. It uses internal APIs that may change without notice. Use at your own risk. By using this library, you agree to Perplexity AI's Terms of Service.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perplexity_webui_scraper-0.6.3.tar.gz.
File metadata
- Download URL: perplexity_webui_scraper-0.6.3.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a59ebbae985b07a7fb9465d2015082d5c0b7c16d158c097ff28e4a404e977ae
|
|
| MD5 |
ce1d80e813bc9ea3f600e0d2ae766e1c
|
|
| BLAKE2b-256 |
0015b1c32bfa29ee2fe7ceff8763a91e6f19314d36de603725c8d28db4ea136d
|
File details
Details for the file perplexity_webui_scraper-0.6.3-py3-none-any.whl.
File metadata
- Download URL: perplexity_webui_scraper-0.6.3-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d4597fe1d7ee80e5a6d1ce4417bf90037b89672947c1c048e28d2cb4859cbff
|
|
| MD5 |
250524c45bab67f15e5aa2db97cd1ffe
|
|
| BLAKE2b-256 |
def8d3587b70fc3766738495961432ae1fe19437913121a2fab33302d9db4074
|