Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghbook-html2txt

Python tool to parse HTML book files (sampled from GhBook), extracting headings, paragraphs, and notes and writing a plain-text version.

Usage

python main.py input.html [output.txt]

Omitting the output path creates a .txt file beside the input.

The generated text uses markers such as ## for headings, PAGE_SEPARATOR for page breaks, and ____________ for horizontal rules.

Requirements

  • Python 3.6+ (no extra packages)

About

Python tool to convert GhBook HTML files into clean plain-text (.txt), preserving book/chapter headings, paragraphs, footnotes, and page breaks.

Resources

Stars

Watchers

Forks

Contributors

Languages