Skip to main content

crewai-scrapeit

ScrapeIt tools for CrewAI agents: scrape any web page and search Google. ScrapeIt fetches each page through its proxies, renders JavaScript when the page needs it and gets past anti-bot protection, so an agent reads the real page instead of a block or an empty shell.

Tool Name Input Returns
ScrapeitScrapeTool scrapeit_scrape url The page as markdown (or text, HTML).
ScrapeitSearchTool scrapeit_google_search query, optional country, language, page The parsed Google results page as JSON.

Install

pip install crewai-scrapeit

Python 3.11+, CrewAI 1.x. Built on the official scrapeit-sdk.

Authentication

Create an API key in the ScrapeIt dashboard under Workspace → API Keys (scope scrape:web) and set it in the environment:

export SCRAPEIT_API_KEY="YOUR_SCRAPEIT_API_KEY"

Or pass it to a tool: ScrapeitScrapeTool(api_key="..."). The key is sent only in the x-api-key header to https://api.scrapeit.io; it is a private attribute, so it never appears in the tool's repr, in CrewAI checkpoints or in error messages.

Usage

from crewai import Agent, Crew, Task
from crewai_scrapeit import ScrapeitScrapeTool, ScrapeitSearchTool

researcher = Agent(
    role="Web researcher",
    goal="Answer questions with facts from current web pages",
    backstory="You search Google first, then read the most relevant pages.",
    tools=[ScrapeitSearchTool(), ScrapeitScrapeTool()],
)
task = Task(
    description="What is example.com used for? Read the page itself.",
    expected_output="Two sentences and the URL you read.",
    agent=researcher,
)

# The agent's LLM comes from CrewAI's own settings (OPENAI_API_KEY by default).
print(Crew(agents=[researcher], tasks=[task]).kickoff())

Call a tool directly, without an agent:

ScrapeitScrapeTool().run(url="https://example.com")  # "Example Domain ..."
ScrapeitSearchTool().run(query="best coffee maker", country="us")  # '{"organic_results": [...], ...}'

ScrapeitScrapeTool(params={...}) sets Web Scraping API parameters for every call, for example {"jsRendering": True, "proxyType": "residential", "proxyCountry": "us"}, and output_format="text" returns plain text instead of markdown. On CrewAI releases with async tools, await tool.arun(...) runs on scrapeit.AsyncScrapeit.

Errors

A failed call raises RuntimeError with the stable ScrapeIt error code, its message and the correlation id, for example ScrapeIt error INSUFFICIENT_CREDITS: ... (correlation_id ...); CrewAI hands that text to the agent. The original scrapeit.ScrapeitError is the exception's __cause__. A missing key fails when a tool is created (MISSING_API_KEY). The agent never gets an empty or a challenge text for a page: a scrape that failed is SCRAPE_FAILED (nothing charged), a site that answered with its anti-bot page is TARGET_BLOCKED (charged: retry with jsRendering or residential proxies).

Credits

Every scrape and search spends credits from your ScrapeIt plan, the same as a direct API call; failures on ScrapeIt's side are free. Agents may call tools several times per task, so give the crew its own API key and watch the Usage page. See billing and credits.

Metadata

Release files for crewai-scrapeit 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 crewai-scrapeit 0.1.0
File Size Uploaded Provenance Actions
crewai_scrapeit-0.1.0.tar.gz 8.4 kB Without provenance Details for crewai_scrapeit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-scrapeit 0.1.0
File Interpreter ABI Platform Actions
crewai_scrapeit-0.1.0-py3-none-any.whl Python 3 none any Details for crewai_scrapeit-0.1.0-py3-none-any.whl

Total release size: 14.7 kB

Release files / crewai_scrapeit-0.1.0.tar.gz

Download URL crewai_scrapeit-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff0803c3bcf699363f912614ac1bd212602c058271255f9488d609d7ed36814f
BLAKE2b-256 checksum
How to use checksums
14f738777f309a10cc7e9ac3ddab391e01edc01aeb6e046b857f885d5471c9bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

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

Download URL crewai_scrapeit-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
769c06c1df73d1abc80e0c2eccb3858ee898c5e65a08cd6c40291e33af86bbb3
BLAKE2b-256 checksum
How to use checksums
8b285f758794d12f768d5f360c9c379dbe4cba029f61895c32f3f6f2b25adee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Security for crewai-scrapeit 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No 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