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.0a3.tar.gz (4.3 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.0a3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_anchorbrowser-0.1.0a3.tar.gz.

File metadata

File hashes

Hashes for langchain_anchorbrowser-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 ff09a80e35c4cc8deec90819c9bdaf34febf4b0533948dd2482be665b52a5aa5
MD5 865af7022ea201facf388e5c0393515b
BLAKE2b-256 3120b3d546522a25033cdc879b2c9665c7f954ac2aea3ab1e75cd9dc77a0df41

See more details on using hashes here.

File details

Details for the file langchain_anchorbrowser-0.1.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_anchorbrowser-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd168bb292696b22f1180bb168dc2e4e2fb937510f77fdacf7ef4b53b7093bb
MD5 9dba0f7b76f140a2ddc79ad06cdc53b7
BLAKE2b-256 dad0dbf25d157fc1742b9b490a6d37049520ff1b462032fff3b3e98b96f5d6ee

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