Skip to content

Mraiih/nhentai-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version MIT license Maintainability

nhentai-api

nhentai-api is a basic and easy to use API for nhentai.net

Installation

Gem install

gem install nhentai-api

Gemfile

gem 'nhentai-api', '~> 1.0'

API

doujinshi = Doujinshi.new(id: 220794)
puts doujinshi.title
puts doujinshi.pages
puts doujinshi.related

puts Doujinshi.random

puts Tag.new(keyword: 'ahegao').listing
puts Character.new(keyword: '2b', sort: :all_time, page: 5).listing

options = {
  keywords: { included: ["girl"] },
  pages: [">= 10", "<= 200"]
}
puts Search.new(options: options).listing

Documentation

The wiki contains the list of all methods with examples

Contributors

  • Mraiih Gael Roussel - creator, maintainer

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages