Skip to main content

Scrapely Python SDK

Build Python Actors for the Scrapely platform with lifecycle helpers, Crawlee-compatible storage, platform events, remote browser CDP, run control, webhooks, and pay-per-event accounting.

Install

Scrapely requires Python 3.9 or newer.

python -m pip install scrapely-python

Install the appropriate Crawlee/Playwright browser dependencies separately when your Actor uses a browser.

Quick start

import asyncio

from scrapely import Actor


async def main() -> None:
    actor_input = await Actor.get_input_or_throw()
    await Actor.push_data({
        "url": actor_input["url"],
        "status": "processed",
    })


if __name__ == "__main__":
    asyncio.run(Actor.main(main))

Actor.main() initializes the Actor, awaits your callback, closes events and storage, and exits the process. For embedded applications and tests, use async with Actor: instead.

Highlights

  • Local file-system storage and Scrapely API-backed datasets, key-value stores, and request queues
  • Crawlee request loaders and storage objects
  • Platform event WebSocket integration and state persistence
  • Automatic remote Chromium CDP wiring through CDP_URL
  • Actor start, call, abort, reboot, and metamorph operations
  • Ad-hoc webhooks, proxy configuration, and charging/pricing types
  • Apify-compatible environment aliases and asynchronous client access

See the complete Python SDK guide for lifecycle details, option objects, storage selection, events, CDP behavior, run control, environment variables, errors, and the full public export list.

License

MIT (see LICENSE), except for three files derived from the Apache-2.0 licensed apify-sdk-python, which stay under the Apache License 2.0 (see LICENSE-APACHE and NOTICE).

Metadata

Release files for scrapely-python 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapely-python 0.1.13
File Size Uploaded
scrapely_python-0.1.13.tar.gz 206.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrapely-python 0.1.13
File Interpreter ABI Platform
scrapely_python-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 383.7 kB

Release files / scrapely_python-0.1.13.tar.gz

Download URL scrapely_python-0.1.13.tar.gz
Size 206.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4585c295cc879e5d7c9f37426b1e1fe21886a340e7f337eb7a9e29bb0be361d7
BLAKE2b-256 checksum
How to use checksums
c26cd2a6fd4d31bf45781390e7d903e24c79765bb2a4aca8000b4cb035b154cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / scrapely_python-0.1.13-py3-none-any.whl

Download URL scrapely_python-0.1.13-py3-none-any.whl
Size 177.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5e5c67db2eb6f0e878dfe0ea06365c4557f1425b38d013d85d8a1d16338d9e6
BLAKE2b-256 checksum
How to use checksums
f9f49702e9cbd03c3e6e75d52b057ace542e0efdc6ab15c228120d2ea9d44848
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.21

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

This release

0.1.13 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page