Python3 脚本,用于下载 archive.org 的书籍,以 PDF 格式保存
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.
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.
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:
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.
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/
Make sure you've already git installed. Then you can run the following commands to get the scripts on your computer:
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
…
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
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 [email protected] -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 [email protected] -p Passw0rd --file books_to_download.txt
If you want to support my work, you can send 2 or 3 Bitcoins to this address:
bc1q4nq8tjuezssy74d5amnrrq6ljvu7hd3l880m7l
暂无开放 Issues,或尚未同步最近议题。