Skip to main content

Python scraper to extract AI responses from Perplexity's web interface.

Project description

Logo

Perplexity WebUI Scraper

Python scraper to extract AI responses from Perplexity's web interface.

PyPI Python License


📚 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perplexity_webui_scraper-0.6.3.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perplexity_webui_scraper-0.6.3-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

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

Hashes for perplexity_webui_scraper-0.6.3.tar.gz
Algorithm Hash digest
SHA256 7a59ebbae985b07a7fb9465d2015082d5c0b7c16d158c097ff28e4a404e977ae
MD5 ce1d80e813bc9ea3f600e0d2ae766e1c
BLAKE2b-256 0015b1c32bfa29ee2fe7ceff8763a91e6f19314d36de603725c8d28db4ea136d

See more details on using hashes here.

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

Hashes for perplexity_webui_scraper-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4597fe1d7ee80e5a6d1ce4417bf90037b89672947c1c048e28d2cb4859cbff
MD5 250524c45bab67f15e5aa2db97cd1ffe
BLAKE2b-256 def8d3587b70fc3766738495961432ae1fe19437913121a2fab33302d9db4074

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page