DuckoLab

DuckoNet

HTTP library
for Python

Send HTTP requests with Chrome and Microsoft Edge network profiles. Handle responses, cookies and redirects in your application.

Your first request

import os
from duckonet import HttpClient

with HttpClient(
    api_key=os.environ["DUCKONET_API_KEY"],
    browser="chrome",
) as client:
    response = client.get("https://example.com/")
    response.raise_for_status()
    print(response.text)

Create an API key in your account and store it in the DUCKONET_API_KEY environment variable.

Chrome and Edge profiles

A profile defines TLS and HTTP settings. The library sends requests without opening a browser window.

Synchronous and asynchronous requests

Use HttpClient for sequential code or AsyncHttpClient with async / await.

Getting started

1

Install the library

Download the package for Windows x64 or Ubuntu 24.04 x64. CPython 3.12 is required.

Choose a package →
2

Get your API key

Create a key in your account and add it to your application.

Get an API key →
3

Send a request

Start with the example above, then add parameters, headers or a request body.

Request examples →