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

uv add perplexity-webui-scraper

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.2.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.2-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: perplexity_webui_scraper-0.6.2.tar.gz
  • Upload date:
  • Size: 19.7 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.2.tar.gz
Algorithm Hash digest
SHA256 499b939a834ad4d42e2275392af7db3aeffc8bfcf1304d03fbeff7ac5f5f0d16
MD5 8a11346cd9fa1dba6dd0ebbe2e679abe
BLAKE2b-256 0191560759de7684e0386dbff2f0908101ed5cc68b029c2fa9435a1e6703c6e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: perplexity_webui_scraper-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 25.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bec1cc03485deef03457dae99edfa4fca620607e9c69b04980444761576d266c
MD5 80e2e93b5afeb6e6a7fc79e635e143eb
BLAKE2b-256 dc507c06deea8657bb7e8a4ed1d8da2e4de63d15382d9b15fc44b140731e043a

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