Ugigi
Ugigi Wrapper for Ruby
Requirements
- Ruby
Installation
gem install ugigi
Usage
require "ugigi"
# フリーワード検索で"ナズーリン"が含まれているSSを持ってくる
naz_novels = Ugigi.search(:free => "ナズーリン")
puts naz_novels.size
# "寅丸星"がタグに設定されているSSを持ってくる
novels = Ugigi.search(:tag => "寅丸星")
novels.each do |novel|
puts novel.title
end
# "にとり"が文章中に含まれているSSの数を持ってくる
puts Ugigi.total_count(:free => "にとり")
# 東方創想話に限定して検索
puts Ugigi.search(:title => "霊夢", :only => :sosowa)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request