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.25

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.25
File Size Uploaded Provenance
scrapely_python-0.1.25.tar.gz 238.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 435.6 kB

Release files / scrapely_python-0.1.25.tar.gz

Download URL scrapely_python-0.1.25.tar.gz
Size 238.7 kB
Tags Source
SHA-256 checksum
How to use checksums
35163e0ad9295e8a77279d7c8d99a73748e1f1fcb254cfa8306058c3ca431864
BLAKE2b-256 checksum
How to use checksums
1d75deac1d1f220fc895742e422465c93a878b7202983512280a5005b1f2502c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL scrapely_python-0.1.25-py3-none-any.whl
Size 196.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea8dd480fe54c09cfebb3fbc4a7aae46bd75b24de7bc4c55ffee4655f30b1e16
BLAKE2b-256 checksum
How to use checksums
2fdd849cc11b45dd9bae0b02467d7f7e3e925cbcbd1272ffd660a7c5702b535d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for scrapely-python 0.1.25

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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