Skip to main content

Bright Data web data tools for Hermes Agent — search, scrape, structured datasets, residential proxy, and browser automation

Project description

hermes-brightdata

CI PyPI version Python License: MIT

Bright Data web data tools for Hermes Agent — search, scrape, structured datasets, and browser automation.

Overview

This plugin integrates Bright Data's web data APIs with Hermes, providing ten powerful tools for web data collection:

  • Search & Scraping: Real-time search, single/batch URL scraping, and structured data extraction
  • Browser Automation: Interactive browser sessions with persistent cookies and JavaScript rendering
  • Bypass Detection: Automatic handling of bot detection, CAPTCHAs, and JavaScript-heavy sites

Bright Data handles all the complexity — proxy rotation, header management, retry logic, and content parsing.

Installation

Install the plugin with base tools:

pip install hermes-brightdata

To enable browser automation tools, install with the [browser] extra:

pip install hermes-brightdata[browser]

The browser extra adds Playwright for interactive session handling (required for browser_navigate, browser_snapshot, browser_act, browser_get).

Configuration

Before using any Bright Data tool, set your API credentials in environment variables:

Required

BRIGHTDATA_API_TOKEN (required, secret)

  • Your Bright Data API token
  • Obtain from Account Settings → API keys in the Bright Data dashboard
  • BRIGHTDATA_API_KEY is accepted as an alias if BRIGHTDATA_API_TOKEN is unset

Optional

BRIGHTDATA_WEB_UNLOCKER_ZONE (optional)

  • Zone name for Web Unlocker API
  • Default: web_unlocker1
  • WEB_UNLOCKER_ZONE is accepted as an alias if the prefixed name is unset

BRIGHTDATA_SERP_ZONE (optional)

  • Zone name for SERP (Search Engine Results Page) API
  • Default: serp_api1

BRIGHTDATA_BROWSER_AUTH (optional, secret)

  • Authentication credentials for Scraping Browser
  • Format: brd-customer-<customer-id>-zone-<zone-name>:<password>
  • Required only if using browser tools with authentication

BRIGHTDATA_PROXY_AUTH (optional, secret)

  • Residential proxy credentials for proxy_scrape
  • Format: brd-customer-<customer-id>-zone-<residential-zone>:<password>

BRIGHTDATA_PROXY_CA (optional)

  • Path to the Bright Data proxy CA certificate (needed for HTTPS through the proxy on port 33335)

BRIGHTDATA_PROXY_HOST (optional)

  • Proxy host:port (default brd.superproxy.io:33335)

Example

export BRIGHTDATA_API_TOKEN="your-api-token-here"
export BRIGHTDATA_BROWSER_AUTH="brd-customer-12345-zone-myzone:password123"
export BRIGHTDATA_PROXY_AUTH="brd-customer-12345-zone-residential:password123"
export BRIGHTDATA_PROXY_CA="/path/to/BrightData_proxy_ca.crt"

Tools

The plugin provides ten tools:

Tool Description
search_engine Search the web via Bright Data SERP API and return parsed results. Use for current events, fact-checking, finding pages, or any web search. Bypasses bot detection; more reliable than built-in web search.
scrape Fetch a single URL as clean markdown (or html) using Bright Data Web Unlocker. Handles JavaScript, CAPTCHAs, and bot detection. Use to read any webpage, article, doc, or site.
scrape_batch Scrape multiple URLs in one call (max 20). Returns per-URL content or error. Use when you have several pages to read at once.
web_data Get structured JSON data from a supported platform via Bright Data Web Scraper API (e.g. an Amazon product page, a LinkedIn profile). Returns clean structured fields, not raw HTML. May take up to a minute.
proxy_scrape Fetch a URL through a Bright Data residential proxy, optionally from a specific country. Use for geo-targeted content (region-specific pricing, localized pages). Requires BRIGHTDATA_PROXY_AUTH.
session_stats Report Bright Data tool call counts for this session.
browser_navigate Open a URL in a Bright Data Scraping Browser (real browser with a persistent session). Use for interactive flows requiring clicks/typing. Requires the [browser] extra and BRIGHTDATA_BROWSER_AUTH.
browser_snapshot Return an accessibility-tree snapshot of the current browser page, including element refs to use with browser_act.
browser_act Perform an action on the current browser page: click, type, scroll, or wait. Get element refs from browser_snapshot first.
browser_get Read the current browser page: html, text, or a base64 screenshot.

Activation

Enable the plugin in Hermes:

hermes plugins enable brightdata

Verify it's loaded:

hermes plugins list

You should see brightdata listed with version 0.2.1.

Pricing

Bright Data offers a free tier with up to 5,000 requests per month. For higher volume, refer to Bright Data's pricing page for details on Web Unlocker, SERP API, Web Scraper API, and Scraping Browser plans.


For more information on Bright Data services, visit https://brightdata.com.

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

hermes_brightdata-0.2.1.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

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

hermes_brightdata-0.2.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file hermes_brightdata-0.2.1.tar.gz.

File metadata

  • Download URL: hermes_brightdata-0.2.1.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hermes_brightdata-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cfc2f8361c9ec5969b69db8ba13663f4e306247cb3dd92966a206759fed656c1
MD5 3c9a7573771d5a125c999a4f5131e06f
BLAKE2b-256 f29254e7a7d190dbf809f6d409f502ff77c9dea895f422116926191164f4364f

See more details on using hashes here.

File details

Details for the file hermes_brightdata-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_brightdata-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 490199354fcfaf21b06547828ebd05b8e75b31bf9e6e30adbaef2dd3e83c512b
MD5 9ca8137d70a05f2a75b9c96eff0388e3
BLAKE2b-256 c5ca36b8dd29d19bcfb8019159b32041f04078e96f705c38e0f11f161f520afa

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