Skip to main content

Official Python SDK for the ResilientLink Web Scraping API

Project description

ResilientLink Python SDK

Official Python client for the ResilientLink Web Scraping API.

Installation

pip install resilientlink

Quick Start

from resilientlink import ResilientLink

client = ResilientLink(api_key="YOUR_API_KEY")

result = client.scrape("https://example.com")
print(result["data"]["title"])        # "Example Domain"
print(result["data"]["description"])  # meta description
print(result["data"]["image"])        # OG image URL

Options

result = client.scrape(
    "https://example.com",
    return_html=True,             # include raw HTML
    screenshot=True,              # base64 PNG (paid plans)
    pdf=True,                     # base64 PDF (paid plans)
    bypass_cache=True,            # force fresh scrape
    wait_for_selector="#app",     # wait for CSS selector
    wait_ms=2000,                 # wait 2s before scraping
    custom_headers={"Accept-Language": "en-US"},
    timeout=30,                   # seconds
)

Response

{
    "success": True,
    "cached": False,
    "tier": "tier",
    "responseTime": 412,
    "data": {
        "url": "...", "title": "...", "description": "...",
        "image": "...", "domain": "...",
        "og": {"title": "...", "description": "...", "image": "..."},
        "content": {"wordCount": 423, "readTimeMinutes": 2, ...},
        "seo": {"keywords": "...", "robots": "...", ...},
        "scrapedAt": "2026-..."
    }
}

Error Handling

from resilientlink import ResilientLink, ResilientLinkError

client = ResilientLink(api_key="YOUR_API_KEY")

try:
    result = client.scrape("https://example.com")
except ResilientLinkError as e:
    print(e)             # human-readable message
    print(e.status_code) # 429 = rate limit, 401 = bad key, 451 = blocked

Get Your API Key

Sign up at resilientlink → Dashboard → API Key.

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

resilientlink-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

resilientlink-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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