Skip to content

pinnaculum/trantor-ebookdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trantor-ebookdl

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.

Usage

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.

Installation

python setup.py install

Requirements

  • python3 >= 3.5 (async support)
  • aiohttp
  • aiohttp_socks

Releases

No releases published

Packages

No packages published

Languages