Skip to main content

langchain-scrapingrabbit

LangChain tools and a document loader for the ScrapingRabbit web data API: YouTube transcripts and comments, TikTok, Instagram, X, Amazon, Google and SEO data for agents and RAG pipelines.

  • Every API endpoint as a LangChain tool, with typed, described arguments.
  • API refusals come back to the agent as text it can act on, not as an exception that stops the run.
  • You pay credits only when a call returns data. Failed calls are free.
  • New accounts get 100 free credits and a first key, no card needed: scrapingrabbit.com/login.

Install

pip install langchain-scrapingrabbit
export SCRAPINGRABBIT_API_KEY=sr_live_...

Tools for agents

The agent example also needs LangChain itself and a model package: pip install langchain langchain-anthropic and export ANTHROPIC_API_KEY=....

from langchain.agents import create_agent
from langchain_scrapingrabbit import ScrapingRabbitToolkit

tools = ScrapingRabbitToolkit(include=["youtube_transcript", "domain_age_checker"]).get_tools()
agent = create_agent("anthropic:claude-sonnet-5-5", tools=tools)
agent.invoke({"messages": [{"role": "user", "content": "Summarise https://www.youtube.com/watch?v=dQw4w9WgXcQ"}]})

Leave out include to get every endpoint. Names come from scrapingrabbit.ENDPOINTS:

from scrapingrabbit import ENDPOINTS
print([e["name"] for e in ENDPOINTS])

Each tool returns the answer's data as JSON text, cut at 60,000 characters (change with max_chars=).

YouTube transcripts as documents

from langchain_scrapingrabbit import ScrapingRabbitYouTubeTranscriptLoader

docs = ScrapingRabbitYouTubeTranscriptLoader(["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]).load()
docs[0].page_content       # the transcript as plain text
docs[0].metadata           # source, video_id, language, is_auto_generated

One credit per video that returns a transcript. A video without captions raises scrapingrabbit.ScrapingRabbitError with code UPSTREAM_NOT_FOUND.

Also available

Python client · Node.js client · MCP server · Agent skill

Develop

pip install -e .
python -m unittest discover -s tests   # runs the tools against a local fake API

License

MIT

Metadata

Release files for langchain-scrapingrabbit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-scrapingrabbit 0.1.0
File Size Uploaded Provenance Actions
langchain_scrapingrabbit-0.1.0.tar.gz 6.7 kB With provenance Details for langchain_scrapingrabbit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-scrapingrabbit 0.1.0
File Interpreter ABI Platform Actions
langchain_scrapingrabbit-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_scrapingrabbit-0.1.0-py3-none-any.whl

Total release size: 12.8 kB

Release files / langchain_scrapingrabbit-0.1.0.tar.gz

Download URL langchain_scrapingrabbit-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
349361208c884fdeed0be8b4ddbd046cb0f746527f25693322a7d0212c685c16
BLAKE2b-256 checksum
How to use checksums
6edb648bd3fde33008e5a393d7913245c3869a19394ab15cd5cc201972e80d73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Release files / langchain_scrapingrabbit-0.1.0-py3-none-any.whl

Download URL langchain_scrapingrabbit-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73073a3afe9b87e40a90c50b14035fdde09d771c7299d9c496d83c7bbf70fca1
BLAKE2b-256 checksum
How to use checksums
2f13db35d5d9e45459f933514d0af50d9a4e7d4eaeaea1e04d96277538176786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Security for langchain-scrapingrabbit 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_scrapingrabbit-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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