Skip to main content

An unofficial Python client for Bright Data APIs.

Project description

BDClient

An unofficial type-safe Python client for Bright Data APIs.

Features:

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

Installation

Installing using pip:

pip install bdclient

Installing using uv:

uv add bdclient

Usage

Example scraper 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="Latest News")

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


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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bdclient-0.3.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bdclient-0.3.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file bdclient-0.3.0.tar.gz.

File metadata

  • Download URL: bdclient-0.3.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for bdclient-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c9febac9ef31f33b1aeff3ba005346c1025003f5d0e80a2a058df4441cd7472d
MD5 93e3dc8c98bc11a1905419cc4c707040
BLAKE2b-256 9c764e5905a995c4dd3ac9167f16e073a46e601d72c8bec4d13b7ee738292a8a

See more details on using hashes here.

File details

Details for the file bdclient-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bdclient-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for bdclient-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8a79e74dd156d40afb067a3f6a28d54f3d8c28b85e1096ff04b0eae4d9f89ec
MD5 47b722f494043bb71868fb817e2ae162
BLAKE2b-256 aa95629a918e5ff8a0094f1028d53fb5eecd3fcce068022bb812a03251f6a10c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page