This script allows you to automatically download audiobook chapters from TokyoBook in one go.
It extracts .mp3 chapter links from a given audiobook page and downloads them into a folder named after the book.
✅ Supports TokyoBook.com audiobooks
✅ Creates a folder named after the book
✅ Extracts and downloads all chapters automatically
✅ Displays a progress bar while downloading
Make sure you have Python 3.12+ installed. Then, install dependencies:
pip install requests beautifulsoup4 tqdmIn main.py, replace the URL with the audiobook page URL from TokyoBook:
book_url = "https://tokybook.com/providence-the-beginning-after-the-end-book-11"Simply execute the script:
python main.pyThe chapters will be downloaded into a folder named after the audiobook.
- Scrapes the audiobook page to get the book title and chapter links.
- Creates a folder named after the audiobook.
- Downloads each chapter as an
.mp3file with a progress bar.
- The script only works with TokyoBook audiobooks.
- Chapter filenames are saved as
chapter 1.mp3,chapter 2.mp3, etc. - If the book title contains invalid characters, they will be replaced automatically.
- If you re-run the script, it may overwrite existing files if they already exist in the folder.
Developed with ❤️ using Python. Contributions and suggestions are welcome!