Skip to main content

Anchor Browser tools for LangChain

Project description

LangChain Anchor Browser Integration

A LangChain integration for Anchor Browser, providing tools to interact with web pages programmatically through AI-driven automation.

Features

  • Content Extraction: Extract text content from web pages
  • Screenshot Capture: Take screenshots of web pages
  • AI Web Tasks: Perform intelligent web tasks using AI (Simple, Standard, Advanced modes)

Installation

pip install langchain-anchorbrowser

Quick Start

1. Set up your API key

You can set your API key in advance, or you'll be prompted for it when you first run a tool.

export ANCHORBROWSER_API_KEY="your_api_key_here"

don't have Anchor's API Key yet? register here.

2. Running tutorial-demo.py

from langchain_anchorbrowser import AnchorContentTool
# Use content tool
content_result = AnchorContentTool().invoke({
    "url": "https://www.anchorbrowser.io",
    "format": "markdown"
})

print(content_result)

Testing

See tests/README.md

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_anchorbrowser-0.1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

langchain_anchorbrowser-0.1.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file langchain_anchorbrowser-0.1.4.tar.gz.

File metadata

  • Download URL: langchain_anchorbrowser-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for langchain_anchorbrowser-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fd1796720f3ee9b993d8d4d041bf5bc75e0402b4195ee9ece44e14e91e449ef4
MD5 e1ffed00e098686d13fcd9d4145b0eb9
BLAKE2b-256 79e931fd470dded957710ea5ce4a60620fca5e1104c1e73ddaa1e70b24dcc7b9

See more details on using hashes here.

File details

Details for the file langchain_anchorbrowser-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_anchorbrowser-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7a0cec844ac1d8e2464615c7a644cefc28216c3fb5e68c1769f28ec795973175
MD5 81b3612866ce5b9d0b7d2b365eec73e3
BLAKE2b-256 3bf66fff69b4aad282fd50ee8e7a8b67db4ea220e233ea37210e8208eef95fec

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