MCPcopy Index your code
hub / github.com/MiniGlome/Archive.org-Downloader

github.com/MiniGlome/Archive.org-Downloader @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
10 symbols 43 edges 1 files 1 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

made-with-python

Logo

Archive.org-Downloader

Python3 script to download archive.org books in PDF format

🌐 Prefer a no-install option? Try the web version: archive-dl.com

Download archive.org books as PDF right from your browser. No Python, no setup, works on any device.

archive-dl.com


About The Project

There are many great books available on https://openlibrary.org/ and https://archive.org/, however, you can only borrow them for 1 hour to 14 days and you don't have the option to download it as a PDF to read it offline or share it with your friends. I created this program to solve this problem and retrieve the original book in pdf format for FREE!

Of course, the download takes a few minutes depending on the number of pages and the quality of the images you have selected. You must also create an account on https://archive.org/ for the script to work.

🌐 Web Version: archive-dl.com

Don't want to install anything? archive-dl.com is the online version of this project. Just paste a book link and download the PDF straight from your browser:

  • No installation: nothing to download or configure, runs entirely in your browser
  • Works everywhere: Windows, macOS, Linux, phones and tablets
  • Same quality: full-resolution PDF downloads
  • Beginner friendly: no command line, no Python required

👉 Try it now at archive-dl.com

Prefer the command line or want to automate bulk downloads? The Python script below is still fully maintained and free to use.

Getting Started

To get started you need to have python3 installed. If it is not the case you can download it here : https://www.python.org/downloads/

Installation

Make sure you've already git installed. Then you can run the following commands to get the scripts on your computer: sh git clone https://github.com/MiniGlome/Archive.org-Downloader.git cd Archive.org-Downloader The script requires the modules requests, tqdm and img2pdf, you can install them all at once with this command:

pip install -r requirements.txt

Usage

usage: archive-org-downloader.py [-h] -e EMAIL -p PASSWORD [-u URL] [-d DIR] [-f FILE] [-r RESOLUTION] [-t THREADS] [-j]

optional arguments:
  -h, --help            show this help message and exit
  -e EMAIL, --email EMAIL
                        Your archive.org email
  -p PASSWORD, --password PASSWORD
                        Your archive.org password
  -u URL, --url URL     Link to the book (https://archive.org/details/XXXX). You can use this argument several times
                        to download multiple books
  -d DIR, --dir DIR     Output directory
  -f FILE, --file FILE  File where are stored the URLs of the books to download
  -r RESOLUTION, --resolution RESOLUTION
                        Image resolution (10 to 0, 0 is the highest), [default 3]
  -t THREADS, --threads THREADS
                        Maximum number of threads, [default 50]
  -j, --jpg             Output to individual JPG's rather than a PDF
  -m, --meta            Output the metadata of the book to a json file

The email and password fields are required, so to use this script you must have a registered account on archive.org. The -r argument specifies the resolution of the images (0 is the best quality). The PDF are downloaded in the current folder

Example

This command will download the 3 books as pdf in the best possible quality. To only download the individual images you can use --jpg.

python3 archive-org-downloader.py -e myemail@tempmail.com -p Passw0rd -r 0 -u https://archive.org/details/IntermediatePython -u https://archive.org/details/horrorgamispooky0000bidd_m7r1 -u https://archive.org/details/elblabladelosge00gaut 

If you want to download a lot of books, you can paste the urls of the books in a .txt file (one per line) and use --file

python3 archive-org-downloader.py -e myemail@tempmail.com -p Passw0rd --file books_to_download.txt

Donation

If you want to support my work, you can send 2 or 3 Bitcoins 🙃 to this address:

bc1q4nq8tjuezssy74d5amnrrq6ljvu7hd3l880m7l

bitcoin_address

Core symbols most depended-on inside this repo

display_error
called by 7
archive-org-downloader.py
loan
called by 2
archive-org-downloader.py
image_name
called by 2
archive-org-downloader.py
get_book_infos
called by 1
archive-org-downloader.py
login
called by 1
archive-org-downloader.py
return_loan
called by 1
archive-org-downloader.py
deobfuscate_image
called by 1
archive-org-downloader.py
download
called by 1
archive-org-downloader.py

Shape

Function 10

Languages

Python100%

Modules by API surface

archive-org-downloader.py10 symbols

For agents

$ claude mcp add Archive.org-Downloader \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact