Bookbot is a command-line tool written in Python for analyzing the content of books in plain text format. It can count words, tally character frequencies, and give you a quick textual overview of any .txt book file.
- Counts total words in a book
- Calculates the count of each character (letters only)
- Displays results in a user-friendly format
- Place your book
.txtfiles in a directory, such asbooks. - Run Bookbot from the command line with:
Example:
python3 main.py <path_to_book>python3 main.py books/frankenstein.txt
- Python 3.x