Code Monkey home page Code Monkey logo

libg-fzf's Introduction

library_genesis-fzf (libg-fzf)

Library Genesis TUI using fzf.
Using this, you can search the library genesis site (https://libgen.is), filter your book out using fzf as well as download the selected book by just pressing Enter; everything right from your terminal!

Usage

libg [OPTIONS] <search query>

Options:

OPTIONS        Description                               Allowed Values
-------        -----------                               --------------
-b <value>     Search By                                 author, title, publisher, year, isbn, language, md5, tags, extension.
-n <value>     Number of Search Results per Page         25, 50, 100.
-d <value>     Depth (Number of result pages to scan)    Any positive integer.
-s <value>     Sort Results By                           id, author, title, publisher, year, pages, language, filesize, extension.
-r             Reverse/Desecending Order

Config file

Edit $HOME/.config/libg/libg.sh to change default values:

DEFAULT_RESPERPAGE=100 # default number of search results per page (allowed values: 25, 50, 100)
DEFAULT_DEPTH=1 # default number of result pages to scan (allowed values: any positive integer)
LIBGEN_MIRROR="https://libgen.rs" # alternatives: *.is, *.rs, *.st	
DOWNLOAD_LOCATION="" # default download location (if empty then books will be downloaded to current directory)

Note: Giving any value except for 25, 50 or 100 for DEFAULT_RESPERPAGE will default it to 25.

Installation

Since it is just a small shell script, just download the script, give it executable permissions and place it in a directory that is in PATH.

Dependency

The only dependency is fzf: https://github.com/junegunn/fzf.
The other dependencies are sed(GNU), awk, curl and wget but are present by default in most Linux installs.

libg-fzf's People

Contributors

kushagra-xo avatar mrishu avatar pystardust avatar

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.