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.1.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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_anchorbrowser-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 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.1.tar.gz
Algorithm Hash digest
SHA256 fa5462d7b6eb4d8f187aa152a92852b081087d230c4bcb300eabc1c415082b57
MD5 c9508c209cd95411871a3553cb90ffea
BLAKE2b-256 3d1ec7c3bfa5587cda680717bd52ef5533ebc2ee1921b4ebac4c4f90a9f6667d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_anchorbrowser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 892019581571ee6073f6acd5d350ee463e9198d8719f72632d210f21aed134df
MD5 2ea3637bdc8d22eefab5c43588bfb316
BLAKE2b-256 1b64b4df169f9c9aeee30f774d8299833365a4042f136efe5e6d0a888dea52bd

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