Skip to main content

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


Download files

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

Source Distribution

langchain_brightdata-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

langchain_brightdata-0.1.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_brightdata-0.1.2.tar.gz.

File metadata

  • Download URL: langchain_brightdata-0.1.2.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

Hashes for langchain_brightdata-0.1.2.tar.gz
Algorithm Hash digest
SHA256 826ebe1588f4aeb5038ab0280c94faf908bcd03eb9656c74e3153f930164c984
MD5 030127e5eff4b895d7d8aff40dc769d6
BLAKE2b-256 e8d614ddabb7e73ba48861b5eaf0f30ac0c10725e9e66fd728458264d93605ee

See more details on using hashes here.

File details

Details for the file langchain_brightdata-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_brightdata-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 897ea2aea71ce631185d4f66af2abfe44f295d387cf112c28c49155c9091e4fb
MD5 f83ce887d5ee1bc18d96347660fd9110
BLAKE2b-256 0e7770b0df5e819cea582a2690910c5ecf777005b8c929f236ab797c0493a833

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