A Python 3.11 tool to create a local backup of your Libro.fm audiobook library using your existing browser login session.
This project:
- Exports your Libro.fm library as CSV
- Discovers download links for each book
- Downloads all audiobook ZIP files
- Extracts and cleans up the audio files
- Organizes everything by Author / Title
- Automatically detects Libro.fm login cookies from your browser
- Downloads all purchased audiobooks
- Extracts ZIP archives into playable audio files
- Renames files to remove redundant prefixes
- Simple, single-command execution
- No virtual environment required
- Python 3.11.5+
- A browser you have logged into https://libro.fm/
- Supported browsers (via
browser_cookie3):- Firefox
- Chrome / Chromium
- Edge
- Etc...
- Clone the repository
git clone https://github.com/V-Karch/libro.fm-backup-creator.git cd libro.fm-backup-creator - Install dependencies
pip install -r requirements.txt
This project does not ask for your username or password.
Instead, it:
- Reads your existing Libro.fm session cookies
- Automatically finds them using
browser_cookie3
- Open your browser
- Log in to https://libro.fm/
- Make sure the login is recent
If no cookies are found, the program will stop with a clear error message.
Run the program:
python main.pyBy default, output is saved in the following manner:
library_out/
└── Author Name/
└── Book Title/
├── 01 Chapter Title.mp3
├── 02 Chapter Title.mp3
└── ...You can change the output directory by modifying the call to:
library.backup("your_output_directory")