Step-by-Step guide on how to rip books from archive.org

by Pancakes / PanicN3xus

Downloading the ACSM file / encrypted PDF file from archive.org

Prerequisites

If it's a "Borrow for 1 hour" book

  1. Go to the book you want to download in archive.org and click on the Borrow for 1-hour button.
    Borrow for 1 hour
  2. Select the following Javascript Bookmarklet
    javascript: /* ArchivePDF */(m =>  (m = location.href.match(/^(https:\/\/(?:[a-z]+\.)?archive\.org\/)details\/([^\/\?]+)/))    && (location.href = m[1] + `services\/loans\/loan\/?action=media_url&identifier=${      encodeURIComponent(m[2])}&format=pdf&redirect=1`))()
    

And drag it to your bookmarks toolbar and click on the bookmarklet when you are on the book's page on archive.org.

(Source, Thanks to u/xXxLegoDuck69xXx for the script)

OR

copy the id of the book from the URL
copy the id from the URL https://archive.org/details/ID

Replace XXXXXXXXXXX from this link https://archive.org/services/loans/loan/?action=media_url&identifier=XXXXXXXXXXX&format=pdf&redirect=1 with the book's id.

So the new URL should be something like this
https://archive.org/services/loans/loan/?action=media_url&identifier=trickotherstorie0000layt&format=pdf&redirect=1

If you don't borrow the book, you will get a {"error": "Request is not authorized."} message

You will get a .acsm file and rename it to the book's name.

If it's a "Borrow for 14 days" book

  1. Go to the book you want to download in archive.org, click on the arrow, and then click on the "Borrow for 14 days" button.
    the "Borrow for 14 days" button
  2. Scroll down and click on the "Encrypted Adobe PDF" or "Encrypted Adobe EPUB" button.
  3. You will get a .acsm file and rename it to the book's name.

Prerequisites

Downloading acsm-calibre-plugin

  1. Download the plugin from releases.
  2. Open Calibre and click on the Preferences button.
    the Preferences button
  3. Under Advanced, Click on the Plugins button.
    the Plugins button
  4. Click on the "Load plugin from file" button and select the .zip file.
    the "Load plugin from file" button
  5. Search for the plugin "deacsm" and click on the "Customize plugin" plugin.
  6. The plugin should display "Not authorized for any ADE ID". You now have multiple options to authorize the plugin:
  • You can click on "Link to ADE account" and enter your AdobeID credentials to link your Calibre installation to your AdobeID account. This uses up one of your available activations.
  • You can click on "Create anonymous authorization" to create an anonymous authorization. Make sure to create backups of that authorization.
  • If you have ADE installed and activated on your machine, you can click "Import activation from ADE" to clone the existing activation from your ADE installation.
  • If you have used this plugin before, you can click on "Import existing activation backup" to import a previously created activation backup (ZIP) file to restore an activation. This functionality can also be used to clone one activation to multiple computers.
    "Not authorized for any ADE ID" / Customize DeACSM Window
    I chose the "Create anonymous authorization" option and selected the ADE version as ADE 2.0.1 backed up the authorization. After you've activated the plugin, backup the activation using the "Export account activation data". Then click on the "Export account encryption key" button.
     the "Export account activation data" and the "Export account encryption key”
  1. Restart Calibre.

Downloading DeDrm_tools

After restarting Calibre please come back to this part again and continue from here.

Converting the .acsm book to pdf using the plugins.

  1. Import the .acsm book that you downloaded from archive.org into Calibre. (thanks to acsm-calibre-plugin)
  2. Right-click the book and click on the "open containing folder" button, and you will see the pdf that has been decrypted. (thanks to dedrm_tools)
    Decrypted Pdf

For this method, you don't need anything except .ACSM file. If you like, you can log in with your ADE account, but the dev used a dummy ADE account, so you don't have to. Source

  1. Go to the repo releases, download the Latest release.
    Repo Releases
  2. Go to the directory containing the downloaded .exe file, press Alt + D, and then type cmd. You have successfully opened the command prompt in the following directory. (I recommend you rename the .exe file to DeGourou.exe)
    Command Prompt
    usage: DeGourou [-h] [-f [F]] [-u [U]] [-t [T]] [-o [O]] [-la] [-li] [-e [E]] [-p [P]] [-lo]
    
    Download and Decrypt an encrypted PDF or EPUB file.
    
    optional arguments:
      -h, --help  show this help message and exit
      -f [F]      path to the ACSM file
      -u [U]      book url from InternetArchive
      -t [T]      book file type/format/extension for book url (defaults to PDF)
      -o [O]      output file name
      -la         login to your ADE account.
      -li         login to your InternetArchive.
      -e [E]      email/username
      -p [P]      password
      -lo         logout from all
    
  3. Basic Usage:

    DeGourou -f "file.acsm"
    

    You can change the output filename (Note: specify file type in the output file name).

    DeGourou -f "file.acsm" -o "newfilename.pdf" 
    
  4. Then, you will notice the decrypted pdf in the same directory.
    Final files

Method 3: Using Calibre + Adobe Digital Edition

Prerequisites

Convert the ASCM to encrypted PDF

After you find the encrypted pdf file please come back to this part again and continue from here.

Downloading DeDrm_tools

After restarting Calibre please come back to this part again and continue from here.

Removing the DRM / Decrypting the Encrypted PDF

  1. Open the Encrypted PDF in Calibre that you got from ADE.
  2. Right-click the book and click on open containing folder and you will see the pdf that has been decrypted. (thanks to dedrm_tools).

Method 4: Without using Calibre (ADE + eBook DRM Remover)

Prerequisites

Convert the ASCM to encrypted PDF

After you find the encrypted pdf file please come back to this part again and continue from here.

Removing the DRM / Decrypting the Encrypted PDF

  1. Open eBook DRM Removal Bundle, and open the Encrypted PDF in Calibre that you got from ADE.
  2. Click on the Convert button. Then go to the file location, and you will see the pdf that has been decrypted.
    the Convert button
    Decrypted Pdf

Downloading DeDrm_tools

  1. Download the plugin from releases.
  2. Open Calibre and click on the Preferences button.
    Preferences button
  3. Under Advanced, Click on the Plugins button.
    Plugins button
  4. Click on the "Load plugin from file" button and select the .zip file.
    Load plugin from file
    1. If you are using the ACSM plugin
      1. Search for "dedrm" and click on the "Customize plugin" button.
      2. Click on the "Adobe Digital Editions ebooks" button and click on the Import Existing Keyfiles button and Import the same Keyfile you used for acsm.
        Adobe Digital Editions ebooks button
        Import Existing Keyfiles button
  5. Restart Calibre.
  6. Continue to next step

You can press Alt + Left Arrow to go back.

Converting the ASCM to Encrypted PDF

  1. Open Adobe Digital Editions
  2. Register an Adobe Account and authorize ADE with your Adobe Account (If you don't get a popup, register by clicking "Help"->"Authorize computer". Also, it's recommended to create a new account if you are planning on using Calibre + ADE method).
    Registering an Adobe Account
  3. Double-click on the acsm file that you downloaded from archive.org. It will open in Adobe Digital Edition and download the content.
    Downloading the content
  4. After it completes downloading, you will see the file.
  5. You must click on the file button and select "Show in explorer" from the menu (Ctrl+E).
    file button and select "Show in explorer" from the menu
  6. Here, you will find the encrypted pdf file.
    Encrypted pdf file
  7. Continue to next step

You can press Alt + Left Arrow to go back.

Some other tools that might work:
https://www.makeuseof.com/tag/remove-drm-every-ebook-own/
https://www.makeuseof.com/tag/ways-to-remove-drm-from-ebooks/

Edit
Pub: 26 Nov 2022 09:43 UTC
Edit: 05 Apr 2023 13:24 UTC
Views: 5114