Giter Site home page Giter Site logo

anna-dl's Introduction

anna-dl

Python tool allowing easy books downloads from the terminal

Replacement for zlib-dl

Features

  • Bypass randomly generated links to downloads
  • Obtain a specified number of results
  • Retrieve metadata without having to go onto annas-archive.org itself

Installation

Clone the repository and install dependencies

git clone https://github.com/Nquxii/anna-dl
cd anna-dl
pip3 install -r requirements.in

Open help section

python3 annadl --h

Ensure your config.json is set if you don't want to use several parameters each time.

Add annadl to path (so you don't need to cd into zlib-dl every time) Linux/MacOS:

ln -s ~[CURRENT DIR]/annadl ~/.local/bin/annadl

Usage

python3 annadl [path] --s [query] --n [number of results]

Number of results defaults to 5 of the top results available. Use 0 to see all search results on the page.

If a path in the command is specified, it will be used. Otherwise, the download_path in config.json will be used. If none of these options are available, the program will use ./assets/ as its download folder.

Example

View 5 search results for "The Pragmatic Programmer". Download the resulting file in /home/johndoe/Documents/books

python3 annadl /home/johndoe/Documents/books --s "The Pragmatic Programmer"

View all search results on the first page for "Don Quixote". Download the resulting file in ./assets/ (assuming no set path in config.json)

python3 annadl --s "Don Quixote" --n 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.