Skip to content

erickpinos/epub-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

EPUB Scanner

A simple Python script that scans a folder for EPUB files and counts the words in each one.

Usage

python epub_scanner.py [folder_path]

If no folder path is provided, it will scan ~/Downloads by default.

Examples

# Scan current directory
python epub_scanner.py

# Scan a specific folder
python epub_scanner.py ~/Documents/Books

# Scan with absolute path
python epub_scanner.py /Users/Erick/Documents/Books

Requirements

  • Python 3.6+
  • No external dependencies (uses only Python standard library)

How it works

  1. Recursively scans the specified folder for .epub files
  2. Extracts text content from each EPUB file (EPUBs are ZIP archives containing HTML/XML)
  3. Counts words in the extracted text
  4. Displays a summary with word counts for each file

Output

The script displays:

  • A list of all EPUB files found
  • Word count for each file
  • Total word count across all files
  • Average words per file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages