AI Training Data Collector — Clean Web Datasets for LLMs avatar

AI Training Data Collector — Clean Web Datasets for LLMs

Pricing

Pay per event

Go to Apify Store
AI Training Data Collector — Clean Web Datasets for LLMs

AI Training Data Collector — Clean Web Datasets for LLMs

Crawl websites and extract structured, clean text datasets perfect for fine-tuning LLMs and RAG pipelines. Removes boilerplate, deduplicates, and scores content quality.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Avinash

Avinash

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

AI Training Data Collector — Structured Web Datasets for LLMs

Crawl websites and extract structured, clean text datasets perfect for fine-tuning LLMs and RAG pipelines. This AI training data collector removes boilerplate, deduplicates content, and scores quality for AI training.

How It Works

The actor launches a Cheerio crawler from your start URLs and follows internal links up to the configured crawl depth, skipping any URL that matches an exclude pattern. For each page it strips nav, header, footer, sidebar, ads, and script elements, then isolates the main content region and converts the remaining HTML into markdown, plain text, or a structured JSON object. It counts words, headings, paragraphs, links, and images, computes a 0-100 quality score from length, vocabulary diversity, sentence count, and structure, and deduplicates via an MD5 hash of the first 2,000 characters before pushing the record to the dataset.

Features

  • Smart content extraction: Removes navigation, ads, footers, and boilerplate
  • Multi-format output: Markdown, plain text, or JSON-Lines
  • Quality scoring: Each page scored 0-100 for training suitability
  • Deduplication: Content hash-based deduplication across pages
  • Configurable depth: 0-3 levels of crawl depth from start URLs
  • Pattern exclusion: Skip unwanted URL patterns (tags, categories, etc.)

Input Parameters

ParameterTypeDefaultDescription
urlsarrayWikipedia AI pageStart URLs to crawl
crawlDepthinteger1Link follow depth (0-3)
maxPagesinteger5Max pages to process
outputFormatstringmarkdownContent format
excludePatternsarraytags, categoriesURL patterns to skip
minWordCountinteger100Skip short pages
proxyConfigurationobjectApify ProxyProxy for reliable scraping

Output Example

{
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"title": "Artificial intelligence - Wikipedia",
"wordCount": 4128,
"qualityScore": 87,
"sourceDomain": "en.wikipedia.org",
"contentType": "start",
"language": "en",
"crawlDepth": 0,
"headingCount": 56,
"paragraphCount": 142,
"linkCount": 311,
"images": 14,
"contentHash": "a3f9c1e8b2d4",
"extractionMethod": "cheerio-html2text",
"scrapedAt": "2026-07-27T16:00:00.000Z",
"cleanText": "# Artificial intelligence\n\nArtificial intelligence (AI) is the intelligence of machines..."
}

Use Cases

  • LLM fine-tuning: Build custom training datasets from any website
  • RAG pipelines: Create knowledge base documents for retrieval-augmented generation
  • Research datasets: Collect structured content for academic research
  • Competitive analysis: Extract and analyze competitor website content

Cost Estimate

  • 5 pages: ~$0.25
  • 100 pages: ~$2.00
  • 1000 pages: ~$15.00