langchain-brightdata 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of langchain-brightdata might be problematic. Click here for more details.
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: langchain-brightdata
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Bright Data tools for LangChain
|
|
5
|
+
Author: Bright Data
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: langchain-core>=0.3.56
|
|
13
|
+
Requires-Dist: pydantic>=2.11.3
|
|
14
|
+
Requires-Dist: requests>=2.32.0
|
|
15
|
+
Requires-Dist: aiohttp>=3.11.0
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: classifier
|
|
18
|
+
Dynamic: description
|
|
19
|
+
Dynamic: description-content-type
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
24
|
+
|
|
25
|
+
# LangChain Bright Data Tools
|
|
26
|
+
|
|
27
|
+
This package integrates Bright Data's services with LangChain.
|
|
28
|
+
|
|
29
|
+
## Tools Included
|
|
30
|
+
|
|
31
|
+
- **BrightDataSERP**: Perform search engine queries with geo-targeting
|
|
32
|
+
- **BrightDataUnblocker**: Access websites that might be geo-restricted
|
|
33
|
+
- **BrightDataWebScraperAPI**: Extract structured data from websites
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pip install langchain-brightdata
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
|
|
45
|
+
from langchain_brightdata import BrightDataSERP
|
|
46
|
+
|
|
47
|
+
# Initialize the tool with your API key
|
|
48
|
+
search_tool = BrightDataSERP(bright_data_api_key="your-api-key")
|
|
49
|
+
|
|
50
|
+
# Use the tool
|
|
51
|
+
results = search_tool.invoke({
|
|
52
|
+
"query": "artificial intelligence news",
|
|
53
|
+
"search_engine": "google",
|
|
54
|
+
"country": "us"
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
## Authentication
|
|
59
|
+
|
|
60
|
+
You'll need a Bright Data API key. You can set it as an environment variable:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
export BRIGHT_DATA_API_KEY="your-api-key"
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Or pass it directly when initializing the tools.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
langchain_brightdata-0.1.0.dist-info/licenses/LICENSE,sha256=jh5H_Fme5jr_l9oMfWwu2mTo-Aef5zUa4KTMNA9Oj8Y,1063
|
|
2
|
+
langchain_brightdata-0.1.0.dist-info/METADATA,sha256=yQuLMCJP0RdvhSBHg-YiaZCZF4BCJDJRIbg59uqcfKs,1587
|
|
3
|
+
langchain_brightdata-0.1.0.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
4
|
+
langchain_brightdata-0.1.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
5
|
+
langchain_brightdata-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
Copyright (c) 2025 Bright Data
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
The above copyright notice and this permission notice shall be included in all
|
|
10
|
+
copies or substantial portions of the Software.
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
13
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
14
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
15
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
17
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|