0.0
No commit activity in last 3 years
No release in over 3 years
A gem to find books on libgen and b-ok sites
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.6
 Project Readme

Book Finder

Gem Version

A gem to find books on libgen and b-ok sites

Installation

Add this line to your application's Gemfile:

    gem 'book_finder'

And then execute:

    bundle

Or install it yourself as:

   gem install book_finder

Examples

require 'book_finder'

from_libgen = BookFinder.search(api: 'libgen', params: { query: 'ruby' })
from_bok = BookFinder.search(api: 'bok', params: { query: 'ruby' })
from_both = BookFinder.search(params: { query: 'ruby' })
from_libgen_by_author = BookFinder.search(api: 'libgen', params: { query: 'elixir', by: 'author'})
from_libgen_order_by_author_desc = BookFinder.search(api: 'libgn', params: { query: 'elixir', ordered_by: 'author', order_mode: 'DESC' })

Specific APIs

require 'book_finder'

only_libgen = BookFinder::Libgen.new
only_from_libgen = only_libgen.search(query: 'ruby')

only_bok = BookFinder::Bok.new
only_from_bok = only_bok.search(query: 'ruby')	

Docs

BookFinder

#search

api

Api where to fetch from

  • libgen
  • bok
  • nil (both)

params

Params and filters for the result

key Description Values Default Necessary
query Input given to the apis to look for the books String "" true
by Column in which the api will search String "" false
ordered_by Column in which the result will be ordered String "" false
order_mode Either ascendent or descendent ASC, DESC "" false
page Page number of the result to bring Number 1 false
language Language of the books listed String "" false
from From which date to start searching Date "" false
to Which date to end searching Date "" false

Which data is returned?

key Data
authors { "author's name" => "link_to_author" }
title "Book title"
publisher "Book publisher"
year 1930
pages 225
language "English"
File size "26 mb"
extension "pdf"
mirrors ["mirror1", "mirror2", "mirrorn"]