Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.17 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.17 KB

PyLibGen

A python3 script to download books from libgen.io

Screenshot

Install (Debian Stretch)

  • sudo apt-get install python3 python3-bs4 python3-lxml python3-tabulate

Usage

usage: pylibgen.py [-h] [-t | -a | -p | -y] search [search ...]

positional arguments:
  search           search term

optional arguments:
  -h, --help       show this help message and exit
  -t, --title      get books from the specified title
  -a, --author     get books from the specified author
  -p, --publisher  get books from the specified publisher
  -y, --year       get books from the specified year

Settings

The default download path for the books is set to the directory from where you run the script. You can easily tweak this and some other options changing the variable's values in settings.py.

Creating aliases for pylibgen

I'm too lazy! If I open a terminal, I don't want type python3 pylibgen.py -a Julian Osorno

The best way for download books from Library Genesis is editing .bashrc and add one line like this:

  • alias library-genesis='python3 /home/blackout/.library-genesis/pylibgen.py'

Thats all.

Happy Reading!