ghostcrawl-langchain
LangChain tool integration for the GhostCrawl web data API.
Exposes the GhostCrawl scrape / content / map / search / extract / crawl /
usage / Google-vertical surfaces as LangChain BaseTool subclasses with shared
Pydantic params validation.
Install
pip install ghostcrawl-langchain
Publish = yes (public PyPI ghostcrawl-langchain).
Quickstart
Each tool is a standard LangChain BaseTool. Call it synchronously with
.invoke(...) — no await, no asyncio.run. Set GHOSTCRAWL_API_KEY (use your
real gck_live_YOUR_KEY) in the environment first:
from ghostcrawl_langchain import GhostCrawlScrapeTool
# Reads GHOSTCRAWL_API_KEY from the environment (gck_live_YOUR_KEY).
tool = GhostCrawlScrapeTool()
result = tool.invoke({"url": "https://example.com", "output_format": "markdown"})
print(result)
Bind the tools to an agent/LLM exactly as you would any LangChain tool:
from ghostcrawl_langchain import GhostCrawlScrapeTool, GhostCrawlSearchTool
tools = [GhostCrawlScrapeTool(), GhostCrawlSearchTool()]
# llm.bind_tools(tools) # your model of choice
Inside an async def (an async agent), use the awaitable twin await tool.ainvoke(...).
Framework-lane surface (idiomatic retrieval subset vs N/A)
ghostcrawl-langchain is a framework lane, not a full SDK: it wraps the
idiomatic retrieval subset of the GhostCrawl API as LangChain tools an agent
can call. Everything else is an explicit N/A — not a gap, just not idiomatic
as an LC retrieval Tool/loader (zero blank cells, zero padded-green).
| Capability | Status | Tool / rationale |
|---|---|---|
| scrape | ✅ GREEN | GhostCrawlScrapeTool → POST /v1/scrape |
| content | ✅ GREEN | GhostCrawlContentTool → POST /v1/content |
| extract | ✅ GREEN | GhostCrawlExtractTool → POST /v1/extract |
| map | ✅ GREEN | GhostCrawlMapTool → POST /v1/map |
| crawl | ✅ GREEN | GhostCrawlCrawlTool → POST /v1/crawl (seeds seed_urls) |
| search | N/A (BYO) | GhostCrawlSearchTool reaches /v1/search, which needs a user-supplied search-backend key (X-Provider-Authorization); a call without that search-backend key returns 401 search_backend_key_missing. The built-in ghostcrawl_google_search tool — GhostCrawl is the search provider, so no separate search key is needed — is the LC-idiomatic alternative. |
| crawl-runs, schedules, webhooks, recordings, kv, profiles, sessions, datasets, identity, me, storage-states | N/A | management / mutation — not a retrieval tool for an agent |
| pdf, screenshot | N/A | binary capture — not idiomatic as a text-returning LC tool/loader |
| agent | N/A (BYO) | agent is BYO/not-hosted (require_agent_enabled() 404); the developer supplies the LLM |
Every tool is verified by a real-execution parity suite (transcripts record counts
- variable names only); re-run with
make -C sdks/python-langchain parity-e2e.
License
Proprietary — GhostCrawl Software License. See LICENSE.
Metadata
Release files for ghostcrawl-langchain 2.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghostcrawl_langchain-2.3.7.tar.gz | 51.5 kB | Without provenance | Details for ghostcrawl_langchain-2.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghostcrawl_langchain-2.3.7-py3-none-any.whl | Python 3 | none | any | Details for ghostcrawl_langchain-2.3.7-py3-none-any.whl |
Total release size: 68.7 kB
Release files / ghostcrawl_langchain-2.3.7.tar.gz
| Download URL | ghostcrawl_langchain-2.3.7.tar.gz |
|---|---|
| Size | 51.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2db27fa5c89dd598fa91018fa8f51c93a2d3e36b82e7f56ceb49143e2d86435a
|
|
BLAKE2b-256 checksum How to use checksums |
9f7d66816eb4a527770771c36659c1933090d6b571e00ffb8351b109f07336e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ghostcrawl_langchain-2.3.7-py3-none-any.whl
| Download URL | ghostcrawl_langchain-2.3.7-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2c53adf57b2fbd80b23b7f74d0e851e407972e78540b8d28518e2aac98e6342
|
|
BLAKE2b-256 checksum How to use checksums |
a01307f307907e3a829099e50be4b9ac74ab4e53fdbb9b59209b774839d08234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for ghostcrawl-langchain 2.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.