Skip to main content

Universal pure web scraping engine.

Project description

Phoenix Engine

A universal pure-web scraping engine that turns public web pages into structured, predictable data. No official APIs required — Phoenix Engine uses raw HTTP requests and headless browser automation to extract posts, profiles, listings, and articles from social platforms and websites.

Current status: beta / early access. A license key is required to run the engine in production.

What it does

  • Scrapes public pages using HTTP or headless browser strategies.
  • Returns a unified JSON output no matter what platform you target.
  • Automatically adapts to site changes, anti-bot measures, and selector drift.
  • Learns from past scrapes to pick the best strategy for each domain.
  • Can be used from the command line or inside your Python application.

Install

From PyPI

pip install phoenix-engine

From a GitHub Release wheel

Download the .whl from the latest release, then:

pip install phoenix_engine-0.1.3-py3-none-any.whl

With Docker

A ready-to-use Docker image is available from the repository. It includes the engine and the Chromium browser, so no local Playwright install is needed.

# Build the image
docker build -t phoenix-engine .

# Run with a mounted config file
docker run --rm -v "$(pwd)/phoenix.yaml:/app/phoenix.yaml" phoenix-engine scrape "https://example.com/post/123"

Activate your license

Phoenix Engine is distributed under license keys during beta. After installing, set your key:

export PHOENIX_LICENSE_ENFORCEMENT_ENABLED=true
export PHOENIX_LICENSE_SECRET="your-signing-secret"
export PHOENIX_LICENSE_KEY="phx.eyJ..."

Or create a phoenix.yaml file:

license_enforcement_enabled: true
license_secret: "your-signing-secret"
license_key: "phx.eyJ..."

If the key is missing, expired, tampered with, or over its use limit, the engine will refuse to start.

First-time setup

After installing, run the built-in setup checker:

phoenix setup

It will verify:

  • Python version (3.11 or newer).
  • Playwright browsers (chromium). If missing, it can install them for you.
  • Ollama is reachable (only needed for AI-assisted extraction).
  • Your license key is valid.

Manual install commands if you prefer:

# Install Playwright Chromium browser
python -m playwright install chromium

# Install Ollama for AI features
# https://ollama.com/download
ollama pull qwen2.5:7b

You can also chat with the local AI assistant:

phoenix chat

Quick start — CLI

# Scrape a single public page
phoenix scrape "https://example.com/post/123"

# Scrape without archiving the raw source
phoenix scrape "https://example.com/post/123" --no-archive

# Scrape multiple URLs in parallel
phoenix scrape-batch \
  "https://example.com/post/123" \
  "https://example.com/post/456" \
  --output results.json

# List built-in platform adapters
phoenix plugins list

# Inspect effective configuration (secrets are masked)
phoenix config show

Quick start — Python library

import asyncio
from phoenix import PhoenixEngine

async def main() -> None:
    async with PhoenixEngine() as engine:
        result = await engine.scrape("https://example.com/post/123")
        print(result.output.model_dump_json(indent=2))

asyncio.run(main())

Configuration

Most settings can be controlled with environment variables or a config file (phoenix.yaml, phoenix.json, phoenix.toml):

timeout: 30
stealth_enabled: true
ai_enabled: false
rate_limits:
  example.com: 1.0

Run phoenix config show to see the active configuration.

Supported platforms

Phoenix Engine ships with adapters for common public platforms and a generic fallback for any HTML page:

  • Instagram, Facebook, X/Twitter, LinkedIn, TikTok, YouTube
  • Generic blogs, listings, and article pages

Adapters are plugin-based, so new platforms can be added without touching the core engine.

Ethical use

Phoenix Engine only scrapes publicly available content. Always respect:

  • The target site's robots.txt and Terms of Service.
  • Local laws and data-protection regulations (GDPR, CCPA, etc.).
  • Rate limits — the engine includes built-in throttling to avoid overload.

Frequently Asked Questions

Q: Do I need an API key from Instagram/Facebook/etc.?
A: No. Phoenix Engine extracts data from public HTML pages, so no official platform API keys are required.

Q: What do I need installed on my machine?
A: Python 3.11+, the phoenix-engine package, and Playwright browsers (python -m playwright install chromium). AI features also need a local Ollama server.

Q: How do I get a license key?
A: Contact the Phoenix Engine team. During beta, keys are issued manually and can include expiration dates and usage limits.

Q: Can I use it without the AI features?
A: Yes. AI is optional. Traditional selector-based extraction works out of the box.

Q: Why did the engine fail with a license error?
A: Either the key is missing, expired, the signature does not match, or the maximum number of uses has been reached. Run phoenix license status to check.

Q: How do I add support for a new website?
A: Use PhoenixArchitect:

phoenix architect generate --url "https://example.com"

Get a license key

Phoenix Engine is currently in closed beta and requires a license key.

To request a key, contact: contact@phoenix-mea.com.

Support

License

Commercial beta license. See your license agreement for terms.

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

phoenix_engine-0.1.5.tar.gz (7.5 MB view details)

Uploaded Source

Built Distribution

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

phoenix_engine-0.1.5-py3-none-any.whl (160.7 kB view details)

Uploaded Python 3

File details

Details for the file phoenix_engine-0.1.5.tar.gz.

File metadata

  • Download URL: phoenix_engine-0.1.5.tar.gz
  • Upload date:
  • Size: 7.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for phoenix_engine-0.1.5.tar.gz
Algorithm Hash digest
SHA256 de3e4d1d0ba3805733f47f590ac75041fd1262770455976070132ed0cf0697a7
MD5 3dce8d3321caf7a1bbdbb957eec09dea
BLAKE2b-256 f9a8f3982951bedadce9653064de61e932b1d69e2f6aafdea39c2b77934ab825

See more details on using hashes here.

Provenance

The following attestation bundles were made for phoenix_engine-0.1.5.tar.gz:

Publisher: publish-pypi.yml on phnx-tech/phoenix-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file phoenix_engine-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: phoenix_engine-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 160.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for phoenix_engine-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d688650424235fe646c984ec83b88f61a0e2525c43bb58ab6c365b1b355090d6
MD5 7dfcfc4f3d6936de7f73ad5a651de327
BLAKE2b-256 f6e453e2b30b338fa273adeb0e5a2c1501584be0e73cf1ef52812325f1965a75

See more details on using hashes here.

Provenance

The following attestation bundles were made for phoenix_engine-0.1.5-py3-none-any.whl:

Publisher: publish-pypi.yml on phnx-tech/phoenix-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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