nhentai-api is a basic and easy to use API for nhentai.net
Gem install
gem install nhentai-api
Gemfile
gem 'nhentai-api', '~> 1.0'
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
The wiki contains the list of all methods with examples
- Mraiih Gael Roussel - creator, maintainer