trantor-ebookdl is a simple python CLI program to download ebooks in the EPUB format from the Imperial Library of Trantor
It uses the asynchronous aiohttp library for the web requests and aiohttp-socks for the socks connection with TOR.
You need to be connected to the Tor network to access the Imperial Library.
Downloading by name:
trantor-ebookdl --byname python
Downloading by subject, no more than 5 ebooks:
trantor-ebookdl --bysubject rome --max 5
Specify the download directory (by default '.'):
trantor-ebookdl --byname 'james bond' --dstdir $HOME/ebooks
Change the default SOCKS host/port parameters:
trantor-ebookdl --byname rimbaud --sockshost remotehost --socksport 9999
You can use the -i flag for interactive mode (it will ask your confirmation before downloading anything). Use --help for full usage list.
python setup.py install
- python3 >= 3.5 (async support)
- aiohttp
- aiohttp_socks