Skip to content

patrickaclark/ch.rip-dockerized

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ch.rip - chirp eBook downloader

Chapter Rip (ch.rip) is a tool to download an optionally pack the audio files for the books you have purchased on chirp. It should work on Windows, Linux, and MacOS.

This project owes a lot to the automation orginally from https://gist.github.com/nfriedly/1d0f81fd68addd594d4974923205c384 the sequence of which is maintained here.

Setup 🚀

First download and unzip this repository. (Or clone it using Git)

There are some prerequisites please install these now:

For repacking books you will also need

Process

  • Install the above components.
  • Navigate your command line to the directory containing this readmey then run npm install. This installs the selenium webdriver we need.
  • Done!

Usage ▶️

Have you got the prerequisites setup? OK good!


Downloading files

  1. Navigate your command line to the directory containing this readme then run

    node chrip.js

  2. Login as prompted

  3. The browser will navigate to the My Library tab. Select the book you want to download. (click the cover not the title)

  4. Go to the first chapter of the book!! Press the play button. The script will now jump through all the chapters snooping on and downloading the files for you. Files will be in a subfolder next to this script.

  5. The script closes the book tab. You may now select another book or exit the browser window.


Repacking books

Repacking books converts the folder of chapter files into a single audiobook file with chapter metadata and book cover. This make it easier to transfer your books to your mobile device.

  1. Navigate your command line to the directory containing this readme then run

    node repack.js FOLDER_NAME

  2. Delete the book folder if you don't need the individal chapters

Notes 📝

If you encounter issues, check the console output for error messages. When reporting a bug please include your browser version, operating system, and book title.

Changelog 📜

1.3.0 - 2026-01-12

Fixed

  • Using chrome itself to download the snooped URLs. A tad slower but works again!

Improved

  • Improved some error messages
  • Resume from last downloaded chapter

1.2.0 - 2025-10-29

Fixed

  • Updated the approach to use chrome for testing. A testing version of chrome will now be installed for this script to use. This will resolve issues with extension loading.

1.1.0 - 2025-06-15

Fixed

  • Fix for Chrome extension loading by adding --disable-features=DisableLoadExtensionCommandLineSwitch flag
  • Updated dependencies (chromedriver from v127 to v137)

1.0.1 - 2025-04-09

Fixed

  • Empty audio file downloads (0 byte .m4a files) by adding __cf_bm and mj_wp_scrt cookies to requests
  • Merged PR #18 from tjxn to fix audio download functionality

1.0.0 - 2025-01-15

Improved

  • Filename handling to support em dashes (—) in book titles (fixes issue #10)
  • Initial stable release

About

CHIRP eBook Downloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%