qmetrics.net

textract

Python text extraction from many document types

textract screenshot

textract pulls plain text from varied file formats through one Python API or CLI. It wraps format-specific extractors so you avoid separate tools per document type.

Overview

textract targets “dark data” locked in office documents, PDFs, presentations, images, and archives where you need clean text for search or NLP. Call textract.process on a path in Python or run the textract command on a file extension from the shell.

Supported types listed in project documentation include CSV, TSV, DOC and DOCX, EML, EPUB, GIF and JPEG and PNG and TIFF via OCR, JSON, HTML, MP3 and OGG and WAV audio, MSG, ODT, PDF via pdftotext or pdfminer.six, PPTX, PS, RTF, TXT, XLS and XLSX, and related dependencies documented per format on Ubuntu, macOS, Windows, and FreeBSD.

The design stays method-agnostic: each format uses an appropriate backend rather than forcing one parser for everything. Documentation compares the approach to Apache Tika and a Node package of the same name, emphasizing a single Python interface and optional command-line use alongside library imports.

Installation notes describe operating-system packages needed for OCR, audio, and legacy Office helpers, plus continuous integration references for required system libraries.

Key features

  • Unified process() Python API
  • Command-line textract interface
  • PDF via pdftotext or pdfminer
  • Office formats via dedicated backends
  • Image OCR through tesseract
  • Audio transcription helpers
  • HTML parsing via BeautifulSoup
  • Spreadsheet support via xlrd

Use cases

  • Extract text from PDFs in pipelines
  • Normalize uploads before indexing
  • Mine slides and Word docs for NLP
  • OCR scanned images to plain text
  • Shell one-liners for quick extraction

Tags

Similar software

PaddleOCR

OCR toolkit for documents and scene text

PaddleOCR parses PDFs and images into structured Markdown or JSON with multilingual text and layout models.

  • PDF and image to Markdown or JSON
  • Layout, table, and formula parsing models
  • Multilingual scene text recognition
PythonLinux, Windows, DockerDetails →
★ 93.8k⟳ yesterdayApache-2.0

Crawl4AI

Web crawler and extraction library for AI pipelines

Crawl4AI turns web pages into clean Markdown or structured JSON for RAG and agents. Use the Python library, Docker server, CLI, or the hosted Crawl4AI Cloud API.

  • LLM-ready Markdown output
  • Structured JSON extraction
  • Async browser pool
PythonDocker, CLIDetails →
★ 88.5k⟳ 11 days agoApache-2.0
Open Source Alternative to:Zyte

CloakBrowser

Stealth Chromium wrapper for Playwright and Puppeteer

CloakBrowser ships a patched Chromium binary and drop-in launch helpers for Python, JavaScript, and .NET. Fingerprints are altered at compile time rather than via injected scripts.

  • Drop-in Playwright launch API
  • Puppeteer import path
  • Source-level fingerprint patches
PythonDocker, CLIDetails →
★ 35.4k⟳ todayMIT
Open Source Alternative to:AdsPowerGoLogin+1

ScrapeGraphAI

LLM-driven Python web scraping pipeline library

ScrapeGraphAI builds scraping pipelines with language models and graph logic. You specify what to extract and it processes websites or local HTML, JSON, XML, and Markdown sources.

  • Prompt-driven single-page extraction
  • Multi-page search and scrape graphs
  • Script and audio generation pipelines
PythonDetails →
★ 33.1k⟳ 1 month agoMIT
Open Source Alternative to:Zyte

Cheerio

jQuery-style library for parsing and manipulating HTML and XML

Cheerio loads HTML or XML and exposes a familiar selector API to traverse and change documents. It is used heavily for server-side parsing and scraping tasks.

  • jQuery-like selector syntax
  • HTML and XML parsing
  • parse5 and htmlparser2 backends
TypeScriptWebDetails →
★ 30.6k⟳ yesterdayMIT

OpenDataLoader PDF

PDF parser for structured LLM and accessibility output

Converts PDFs to Markdown, JSON with bounding boxes, and HTML for RAG and analysis. Offers local deterministic mode and optional hybrid AI for hard pages.

  • Markdown, JSON, and HTML export
  • Bounding boxes per document element
  • XY-Cut++ multi-column reading order
JavaCLIDetails →
★ 30.4k⟳ yesterdayApache-2.0