Skip to main content

🦜️🔗 langchain-opticparse

Official LangChain and CrewAI ecosystem integration for OpticParse and PhishVision.

Enables AI agents to:

  1. Visually Scrape Live Webpages (OpticParseTool): Extract clean, structured JSON using multimodal vision without fragile CSS selectors.
  2. Scan Zero-Day Cyber Threats (PhishVisionTool): Inspect unknown domains for crypto wallet-drainers and brand impersonation kits before interacting.

📦 Installation

pip install langchain-opticparse

🚀 Usage with LangChain

from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
from langchain_opticparse import OpticParseTool, PhishVisionTool

# Initialize tools
tools = [
    OpticParseTool(),
    PhishVisionTool()
]

llm = ChatOpenAI(model="gpt-4o")

# Create autonomous agent with vision scraping and threat intelligence
agent = initialize_agent(
    tools,
    llm,
    agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
    verbose=True
)

# Example 1: Extract live product pricing
response = agent.run("Scrape the latest pricing and specs from https://news.ycombinator.com")
print(response)

# Example 2: Inspect a suspicious crypto airdrop URL before clicking
security_check = agent.run("Verify if this link is a crypto drainer: https://suspicious-airdrop.xyz")
print(security_check)

👥 Usage with CrewAI

from crewai import Agent, Task, Crew
from langchain_opticparse import OpticParseTool

vision_scraper = OpticParseTool()

market_researcher = Agent(
    role='Senior Market Intelligence Analyst',
    goal='Extract and synthesize competitor pricing deltas in real-time',
    backstory='An expert automated web researcher powered by OpticParse Vision AI.',
    tools=[vision_scraper],
    verbose=True
)

📄 License

MIT © OpticParse Enterprise

Download files

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

Source Distribution

langchain_opticparse-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

langchain_opticparse-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_opticparse-1.0.0.tar.gz.

File metadata

  • Download URL: langchain_opticparse-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for langchain_opticparse-1.0.0.tar.gz
Algorithm Hash digest
SHA256 79b96e8f3780e300476a2ebfb26fc7f8b6055a6e3dbfaa966011d1600e1f1770
MD5 f5bb2cee56691e20059aca6073dbc46b
BLAKE2b-256 28ffdacada024d52491ced19db9767b7c919dd9474e69bbdb7f663c660016a0b

See more details on using hashes here.

File details

Details for the file langchain_opticparse-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_opticparse-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b99f478ccea3e699bad86ef4196a84c69a3fa7db11c35ba2dfb59838a674a09f
MD5 0e3822993458548e7b5039068a9484be
BLAKE2b-256 02cbe62fc7570487ff1211dd9bb93cc5c18485bf1260ebc6971ad634f5d5a428

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page