Skip to main content

BDClient

An unofficial Python client for Bright Data APIs.

Features:

  • Scraper API
    • Google News
    • Google SERP
    • YouTube Videos
  • SERP API
    • Google Search
  • Unlocker API

Installation

Installing using pip:

pip install bdclient

Installing using uv:

uv add bdclient

Usage

Example Scraper API usage:

import asyncio

from bdclient.scraper.youtube_videos import DiscoverByKeyword, DiscoverByKeywordQuery


async def main():
    scraper = DiscoverByKeyword(api_key="your_bright_data_api_key")
    query = DiscoverByKeywordQuery(keyword="How to make pizza")

    results = await scraper.scrape([query])
    for result in results:
        print(result.model_dump_json(indent=4))


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

Example SERP API usage:

import asyncio

from bdclient.serp.google_search import GoogleSearch


async def main():
    google_search = GoogleSearch(
        api_key="your_bright_data_api_key",
        zone="your_serp_zone",
    )
    result = await google_search.search(keyword="Pizza toppings")
    print(result)


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

Example Unlocker API usage:

import asyncio

from bdclient.unlocker import Unlocker


async def main():
    unlocker = Unlocker(
        api_key="your_bright_data_api_key",
        zone="your_unlocker_zone",
    )

    result = await unlocker.unlock("https://www.bbc.com/news/articles/c8ex2l58en4o")
    print(result)


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

Metadata

Release files for bdclient 0.4.2

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

Source distribution (sdist)

Source distribution for bdclient 0.4.2
File Size Uploaded Provenance
bdclient-0.4.2.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bdclient 0.4.2
File Interpreter ABI Platform
bdclient-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / bdclient-0.4.2.tar.gz

Download URL bdclient-0.4.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
45d15d2b9f829de1b6875f424aba8a157a21c725e2b93195c55e3cceacfa1457
BLAKE2b-256 checksum
How to use checksums
32cc285125037e1eb4b0da01c144cbaf8dfe790caa2325e3ac7bce25b58f170c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.1

Release files / bdclient-0.4.2-py3-none-any.whl

Download URL bdclient-0.4.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bb52401cf6952161198c410ab0a7d2954a307e63844263443687bd3527ec8a5
BLAKE2b-256 checksum
How to use checksums
239edf28f7a18f02ee5e96f5f130293f14631e9a9639bc6dd8a8dc22e9d56720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.1

Security for bdclient 0.4.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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