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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9febac9ef31f33b1aeff3ba005346c1025003f5d0e80a2a058df4441cd7472d
|
|
| MD5 |
93e3dc8c98bc11a1905419cc4c707040
|
|
| BLAKE2b-256 |
9c764e5905a995c4dd3ac9167f16e073a46e601d72c8bec4d13b7ee738292a8a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8a79e74dd156d40afb067a3f6a28d54f3d8c28b85e1096ff04b0eae4d9f89ec
|
|
| MD5 |
47b722f494043bb71868fb817e2ae162
|
|
| BLAKE2b-256 |
aa95629a918e5ff8a0094f1028d53fb5eecd3fcce068022bb812a03251f6a10c
|