Bright Data tools for LangChain
Project description
LangChain Bright Data Tools
This package integrates Bright Data's services with LangChain.
Tools Included
- BrightDataSERP: Perform search engine queries with geo-targeting
- BrightDataUnblocker: Access websites that might be geo-restricted
- BrightDataWebScraperAPI: Extract structured data from websites
Installation
pip install langchain-brightdata
Usage
from langchain_brightdata import BrightDataSERP
# Initialize the tool with your API key
search_tool = BrightDataSERP(bright_data_api_key="your-api-key")
# Use the tool
results = search_tool.invoke({
"query": "artificial intelligence news",
"search_engine": "google",
"country": "us"
})
Authentication
You'll need a Bright Data API key. You can set it as an environment variable:
export BRIGHT_DATA_API_KEY="your-api-key"
Or pass it directly when initializing the tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 langchain_brightdata-0.1.1.tar.gz.
File metadata
- Download URL: langchain_brightdata-0.1.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92ac207f8c861393bd0a9c1060d6398b17de7033297566fcc335a3fa53a21826
|
|
| MD5 |
56dd4d565b321924ab3fa2f50c2dbbaa
|
|
| BLAKE2b-256 |
594d13d70753a34f66d10e943fe7ccc7da2b57d613b897db5b165efdd5fb628a
|
File details
Details for the file langchain_brightdata-0.1.1-py3-none-any.whl.
File metadata
- Download URL: langchain_brightdata-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc5dbe456f90a47149cbda0d21e0f484c508da2ff0023813a3dcdccbbf5f8b51
|
|
| MD5 |
7968d91e8a81645b6530a6963ca7e87f
|
|
| BLAKE2b-256 |
023004ecf83ec4d123530dea046e4990ce2e7884e1c6747e24e1f88ee5b9bb1c
|