Skip to content

A Go API for Libgen with direct download links and more.

License

Notifications You must be signed in to change notification settings

Factual0367/libgenapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibgenAPI

Search Library Genesis programmatically using an this Go package. It supports using Library Genesis' default, author, and title searches.

Install the package

go get github.com/onurhanak/libgenapi

Example Usage

Default Search

query := libgenapi.NewQuery("default", "libraries", 25) // or 50, 100
err := query.Search()
fmt.Println(query.Results)

Title Search

query := libgenapi.NewQuery("title", "archaeology", 25) // or 50, 100
err := query.Search()
fmt.Println(query.Results)

Author Search

query := libgenapi.NewQuery("author", "Foucault", 25) // or 50, 100
err := query.Search()
fmt.Println(query.Results)

Add Alternative Download Link to Book

query := libgenapi.NewQuery("author", "Foucault", 25) // or 50, 100
err := query.Search()
book := query.Results[10]
err := book.AddSecondDownloadLink()

About

A Go API for Libgen with direct download links and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages