:woman: Ruby library for いらすとや
https://rubygems.org/gems/irasutoya ↗// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Around since 2019 and still shipping
- 15 open issues handled by one or two people
// how to help
// readme
Irasutoya
Irasutoya is a gem for Ruby developers who want to find いらすとや illustrations and fetch their details from code.
Features
- Search Irasutoya illustrations by keyword.
- Browse illustrations by category or open a random post.
- Read a post’s title, description, and image URLs.
Installation
Irasutoya requires Ruby 3.3 or later.
Add this line to your application’s Gemfile:
gem 'irasutoya'
Run bundle install to install the gem from RubyGems. To install it directly without a Gemfile, run:
gem install irasutoya
Install the development version
Examples marked Unreleased require the current development version. To use it, replace the RubyGems entry in your Gemfile with:
gem 'irasutoya', github: 'irasutoya-tools/irasutoya', branch: 'master'
Run bundle install, then use bundle exec ruby to run scripts with that version.
Quick start
Save this example as find_illustration.rb: