Skip to main content
The official Python client for Scrapely.io, a powerful API for web scraping and CAPTCHA solving. Our SDK provides a seamless developer experience with fully typed responses, auto-polling for task completion, and both synchronous and asynchronous support for high-concurrency applications.

Installation

You can install the SDK via pip:

Usage Examples

The SDK provides two clients: Scrapely for standard synchronous scripts, and AsyncScrapely for high-performance, concurrent applications using asyncio.

Advanced Usage

Automation Instructions

You can pass a list of instructions to interact with the page before scraping. The SDK provides helper classes (SendKeys, Click, Wait, etc.) for type safety and auto-completion.

Typed Response Objects

All API responses are returned as strictly typed Python dataclasses for better IDE support.
  • CrawlerResponse: Returned by crawler tasks. Contains a result (CrawlerResult) object with fields like html, text, cookies, screenshot, and user_agent.
  • CaptchaResponse: Returned by CAPTCHA tasks. Contains a result (CaptchaResult) object with the solved solution string.