Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scraper

A lightweight Python utility for extracting text from multiple file formats — PDF, Word (.docx), CSV, and plain text — via a single unified interface.

Features

  • Single extract_text() interface for all supported formats
  • Automatic file type detection based on extension
  • Supports:
    • PDF files (via pdfplumber)
    • Word documents (.docx, via pydocx)
    • CSV files (standard library)
    • Plain text files (.txt)
  • Per-format error isolation to prevent one failure from blocking others

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/scraper.git
    cd scraper
  2. Install dependencies:

    pip install pdfplumber pydocx

Usage

from main import extract_text

text = extract_text("document.pdf")
print(text)

Supported file extensions: .pdf, .docx, .csv, .txt

Project Structure

scraper/
├── main.py   # All extraction logic

About

A lightweight Python utility for extracting text from multiple file formats — PDF, Word (.docx), CSV, and plain text — via a single unified interface

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages