INTEGRATIONS

Use Scrapeless to Load Web Data into LlamaIndex for RAG

Load web pages and search results into LlamaIndex for retrieval and RAG workflows.

  • Python data reader
  • Service and request parameters
  • LlamaIndex Documents
Scrapeless
LlamaIndex
Input
ScrapelessReaderScrapeless Python SDK
scrape{"url": "https://example.com"}
Workflow resultIllustrative data
[
  {
    "text": "This domain is for use in documentation examples.",
    "metadata": {
      "url": "https://example.com"
    }
  }
]

Trusted by teams bringing web data into their workflows

What is LlamaIndex?

LlamaIndex is a framework for building applications that connect language models to your data. Its readers load source material into Documents for indexing, retrieval, and retrieval-augmented generation.

Build Automated Web Data Workflows with Scrapeless and LlamaIndex

Use ScrapelessReader to collect web data through the Scrapeless Python SDK and load the results as LlamaIndex Documents.

Google Search

Load organic search snippets, titles, and source links into LlamaIndex with the google_search service.

Structured Scraping

Use scraping with a supported actor to load structured JSON or selected records as Documents.

Single-page Scrape

Send a URL to scrape and load the page as a Document. Request Markdown for text workflows.

Batch Scrape & Site Crawl

Use batch_scrape for a URL list or crawl to follow links from a starting page.

Web Unlocker

Fetch a supported page with web_unlocker and load the returned content, including text extracted from HTML.

AI Scraper

Use ai_scraper to load completed AI answers and keep citations when the selected actor returns them.

Load web data with ScrapelessReader

Choose a service and pass its request parameters to ScrapelessReader. The Reader loads completed results into Documents with text and available metadata.

View setup guide

The Reader loads text and metadata.

Your LlamaIndex application controls chunking, embeddings, indexing, and retrieval.

Try for Free

How to Connect Scrapeless to LlamaIndex and Run Your First Workflow

Python 3.10 or later. A Scrapeless account and API key. A test URL or parameters for your chosen service.

Install the Reader and configure .env
mkdir -p llamaindex-quickstart
cd llamaindex-quickstart
python3.13 -m venv .venv
source .venv/bin/activate
python -m pip install llamaindex-scrapeless==0.1.1
python -m pip install python-dotenv

# Add this line to a local .env file:
# SCRAPELESS_API_KEY=YOUR_SCRAPELESS_API_KEY

Create a Python virtual environment, install ScrapelessReader and python-dotenv, then set SCRAPELESS_API_KEY in a local .env file.

Ready to get started? Create your Scrapeless account →

Import ScrapelessReader from llamaindex_scrapeless and create a Reader. Pass scrape and the URL parameters from the example below to load_data().

Confirm that the Reader returned at least one document with nonempty text. Inspect its source URL and text preview before indexing.

Explore Web Data Workflows with Scrapeless and LlamaIndex

Load a web page with ScrapelessReader. Scrapeless retrieves its content, and the reader returns LlamaIndex Documents. Inspect the text and metadata, then pass the Documents to your indexing or retrieval workflow.

  1. LlamaIndex

    Choose a Page URL

  2. Scrapeless

    Scrape via Reader

    {
      "url": "https://example.com",
      "markdown": "# Example Domain\n\nThis domain is for use in documentation examples."
    }
  3. LlamaIndex

    LlamaIndex Documents

  4. LlamaIndex

    Index for Retrieval

Illustrative workflow and example data. Scrapeless provides the web data or browser session. LlamaIndex performs the following workflow steps.

Frequently asked questions

How does Scrapeless connect to LlamaIndex?

Install the llamaindex-scrapeless package and call ScrapelessReader with a service and its parameters. The Reader uses the Scrapeless Python SDK and returns a list of LlamaIndex Documents.

Which Scrapeless services can I use?

The Reader supports Google Search and structured scraping through Scraping API, single-page scraping, batch scraping, and site crawling through Crawl, as well as Web Unlocker and AI Scraper.

Can I use the returned Documents for RAG?

Yes. Each Document includes text and metadata. Your LlamaIndex application controls downstream chunking, embeddings, indexing, and retrieval.

Where do I get the API key?

Create or sign in to your Scrapeless account, then get your API key from the dashboard and set it as SCRAPELESS_API_KEY in your environment.

How is usage billed?

Check Scrapeless pricing for the service you call. Any model, embedding, or vector store fees depend on the providers you configure in your application.

What should I check if loading fails?

Verify that SCRAPELESS_API_KEY is set and that the service and parameters match the guide. For a long-running task, check its status and use its task ID to resume if the service supports it.

Connect your tools to web data

Bring search, scraping, and browser automation into the tools you already use.