Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinnaculum/trantor-ebookdl
Ebooks downloader CLI for trantor
https://github.com/pinnaculum/trantor-ebookdl
aiohttp ebook-downloader ebooks epub trantor
Last synced: 14 days ago
JSON representation
Ebooks downloader CLI for trantor
- Host: GitHub
- URL: https://github.com/pinnaculum/trantor-ebookdl
- Owner: pinnaculum
- License: gpl-3.0
- Created: 2020-01-07T18:24:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-14T22:11:42.000Z (over 2 years ago)
- Last Synced: 2024-10-23T03:11:26.074Z (22 days ago)
- Topics: aiohttp, ebook-downloader, ebooks, epub, trantor
- Language: Python
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trantor-ebookdl
**trantor-ebookdl** is a simple python CLI program to download ebooks
in the EPUB format from the
[Imperial Library of Trantor](https://github.com/trantor-library/trantor)It uses the asynchronous [aiohttp](https://github.com/aio-libs/aiohttp) library
for the web requests and [aiohttp-socks](https://github.com/romis2012/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:
```sh
trantor-ebookdl --byname python
```Downloading by subject, no more than 5 ebooks:
```sh
trantor-ebookdl --bysubject rome --max 5
```Specify the download directory (by default '.'):
```sh
trantor-ebookdl --byname 'james bond' --dstdir $HOME/ebooks
```Change the default SOCKS host/port parameters:
```sh
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
```sh
python setup.py install
```## Requirements
* python3 >= 3.5 (async support)
* aiohttp
* aiohttp_socks