#BookBot
BookBot is my first Boot.dev project!
BookBot is a Python project from boot.dev that analyzes text files to provide word and character frequency statistics.
To run BookBot, use the following command:
uv run main.py <path_to_book.txt>- Word Count: Outputs the total number of words in the provided text file.
- Character Frequency: Lists all characters used in the text and their frequency, sorted by usage (most frequent first).
- Python 3.x
- uv for dependency management
- Clone the repository:
git clone https://github.com/Steffen025/bookbot.git cd bookbot - Ensure
uvis installed. Follow the instructions here if needed. - Place your text file (e.g.,
book.txt) in the project directory or provide its path.
uv run main.py books/book.txtThis will output:
- Total word count
- A sorted list of characters and their frequencies