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.4.tar.gz (19.7 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.4-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file perplexity_webui_scraper-0.6.4.tar.gz.

File metadata

  • Download URL: perplexity_webui_scraper-0.6.4.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.4.tar.gz
Algorithm Hash digest
SHA256 d3cd6b8ef12ddc1156b9f01784048abd63b172bb128fd8da498e34aa3f16254e
MD5 92267c4adfc3a711e6617a16ad6c7d16
BLAKE2b-256 7c767b3de2dc5d2579ee8e3f2242b6f0d3ebc45f8eae3d9a7d6ffe9fdba452b4

See more details on using hashes here.

File details

Details for the file perplexity_webui_scraper-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: perplexity_webui_scraper-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 751cb55fc8a65ad3b1e61fa36a8516a36ab0693376ff26d5fdea93306ce81b4c
MD5 b4a0548f2da48223fa68b783c63eb562
BLAKE2b-256 8a3dc95ef0141a58ffc73fc035ae41a53c398480faf5e9306e00612ec6997aa7

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