BookGenreOrganizer is a tool designed to automatically categorize ePub and PDF books into genre-specific folders based on their metadata. The tool fetches genre information from the Google Books API and organizes the books into folders named after their genres.
- Automatically extracts metadata from ePub and PDF files.
- Fetches genre information using the Google Books API.
- Organizes books into genre-specific folders.
- Creates new folders if a genre folder does not already exist.
Download BookGenreOrganizer.exe
- Python 3.6+
- The following Python libraries:
ebooklib
PyPDF2
requests
To use this tool, you need to have Python and the required libraries installed. Follow the steps below to set up and run the tool.
Clone the repository to your local machine using:
git clone https://github.com/sandeepbanoula/BookGenreOrganizer.git
cd BookGenreOrganizer
Install the required Python libraries using pip:
pip install -r requirements.txt
Copy the script to your books directory and run it inside your books directory:
python script.py
If you want to create a standalone executable for easier distribution, follow these steps:
Install PyInstaller if you haven't already:
pip install pyinstaller
Run the following command to create a standalone executable:
pyinstaller --onefile script.py
The executable will be generated in the dist
folder.
-
Download the Executable: Download/Copy the
script.exe
file from thedist
folder. -
Prepare Your Books Folder: Ensure all your ePub and PDF files are in a single directory. For example, create a folder named
books
on your desktop and move all your ePub and PDF files into this folder. -
Run the Executable: Copy the executable file in the Books Folder and open it.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please create an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Sandeep Banoula |
- Thanks to the developers of
ebooklib
,PyPDF2
, andrequests
for their excellent libraries. - Special thanks to Google Books API for providing the genre information.
- Thanks to ChatGPT by OpenAI for its help.