Skip to main content

quantumproxies — Python SDK for the QuantumProxies API

Scrape any page to clean Markdown, run structured Google/Bing/DuckDuckGo searches, crawl and map whole sites, run 74 ready-made Collectors (Amazon, Google Maps, LinkedIn jobs, app stores…), build datasets from a plain-language prompt — everything through QuantumProxies' residential proxy network with real-browser TLS fingerprints. Pay per successful call; blocked pages cost nothing.

pip install quantumproxies

Quickstart

from quantumproxies import QuantumProxies

client = QuantumProxies()  # reads QUANTUMPROXIES_API_KEY from the environment

page = client.scrape("https://example.com")
print(page["title"], page["engine"])
print(page["content"])          # the page as clean Markdown

Get a free API key at quantumproxies.io — every account includes free monthly usage, no card required. Set it once:

export QUANTUMPROXIES_API_KEY=qp_live_your_key_here

What's in the box

Every REST endpoint, one method each — responses come back with the API envelope already unwrapped:

# Structured search — 3 engines, 17 verticals, SerpApi-compatible JSON
serp = client.search("best espresso machine", country="us", num=20)
for r in serp["organic"]:
    print(r["rank"], r["title"], r["link"])

# SERP → citation-ready Markdown context for an AI prompt
ctx = client.search_and_read("latest EU AI act status", top_n=3)

# Map a site's URLs in seconds (sitemaps + homepage links)
urls = client.map("https://stripe.com", search="/blog")

# Async crawl — wait=True polls until it settles and returns the pages
job = client.crawl("https://docs.python.org", limit=30, depth=2, wait=True)

# Batch-scrape known URLs
job = client.batch(["https://a.example", "https://b.example"], wait=True)

# CSS/AI extraction on one page
data = client.scrape(
    "https://books.toscrape.com",
    extract={"titles": {"selector": "h3 a", "attr": "title", "all": True}},
)

# Learn selectors once with an LLM, then scrape the same layout for free
parser = client.generate_parser(
    "https://news.ycombinator.com",
    fields={"titles": "every story title, as a list"},
)

# 74 ready-made Collectors — semantic input instead of URLs
places = client.run_collector(
    "google_maps_places", keyword="dentist", location="Austin, TX", max_results=20
)

# Dataset from a prompt (validated rows, budget-capped)
ds = client.create_dataset(
    "coffee roasters in Portland with email and phone",
    limits={"max_rows": 50, "max_cost_usd": 2},
    wait=True,
)

# Proxy endpoints of every type — residential, mobile, datacenter, ISP, IPv6
plans = client.list_proxies(active=True)
proxies = client.generate_proxies(plans["proxies"][0]["orderId"], country="us", quantity=5)

Errors and retries

Failures raise QuantumProxiesError with .status, .message and .payload. Connection errors and HTTP 429 are retried with backoff; billable calls are never re-sent after a response was received, so nothing gets double-billed behind your back.

from quantumproxies import QuantumProxies, QuantumProxiesError

try:
    QuantumProxies(api_key="qp_live_wrong").scrape("https://example.com")
except QuantumProxiesError as err:
    print(err.status, err.message)

Also available

MIT licensed.

Download files

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

Source Distribution

quantumproxies-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

quantumproxies-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file quantumproxies-0.1.0.tar.gz.

File metadata

  • Download URL: quantumproxies-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.6

File hashes

Hashes for quantumproxies-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4efd24c859b58f90417609a6dfc8574549c779f612fc8eef54bae07e28fd26ee
MD5 726f5301b12917a84116bafbc9b2aa67
BLAKE2b-256 b198a29e2fb23291cd576f209b99a85ee698be97f83368a0c4a06b672050c910

See more details on using hashes here.

File details

Details for the file quantumproxies-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantumproxies-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.6

File hashes

Hashes for quantumproxies-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a3ee078edb6b05da73ef768e15e6041d855a7f836549839bb5e48a3f9ad0fef
MD5 63d8e8cb8e172a17853d9153ddc171ab
BLAKE2b-256 54683fca0df54a019f4762894beb9660120972ca73fc512ef63988e5dfa36137

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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