Official SDKs
AdsCrawl for Python
Add browser tasks and remote CDP sessions to your Python data workflows. Synchronous and asynchronous clients built on the Python standard library.
What you can do
Rendered web content
Read JavaScript-rendered pages as Markdown, HTML or structured article JSON.
Page screenshots
Capture a viewport or full page through the screenshot API.
Browser workflows
Use Remote CDP for navigation, clicks and form input across multiple steps.
Before you start
- Python 3.9+
- An AdsCrawl account and API key.
- Set ADSCRAWL_API_KEY in the environment of the process running your client. Keep it out of browser code and source control.
SETUP METHOD 01
Official SDK
Call AdsCrawl directly from your Python application.
Install the package
Run this command in your project. For Go, initialize a module first if the project does not have a go.mod file.
pip install adscrawlConfigure authentication
Set ADSCRAWL_API_KEY in the environment of the process running your client. Keep it out of browser code and source control.
Make your first request
Run this example on the server. It reads Example Domain as Markdown using your account key from the environment.
from adscrawl import AdsCrawl client = AdsCrawl() markdown = client.markdown({ "url": "https://example.com", "waitUntil": "domcontentloaded", }) print(markdown)
Usage & limits
- API requests and browser sessions use your AdsCrawl account credits. Installing a client does not include a separate usage allowance.
- For interactive CDP sessions, install your browser automation library separately and close each remote session in a finally block. Avoid automatic retries of metered requests.