Worldcatapi
The RUBY API to access WorldCat.org webservices. Inspired by original wcapi implementation
Install / Use
/learn @taras-yorku/WorldcatapiREADME
worldcatapi
The RUBY API to access WorldCat.org webservices. Inspired by original wcapi implementation
Worldcatapi
Forked from RubyForge WCAPI project. It now lives on rubygems.org for easy installation and usage.
Installation
Add this line to your application's Gemfile:
gem 'worldcatapi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install worldcatapi
NOTE on Nokogiri and Rails:
worldcatapi 1.0.3 requires nokogiri versions 1.5.x, usable for Rails 4.1 or older worldcatapi 1.0.4 requires nokogiri versions 1.6.x, usable for Rails 4.2 or newer
Usage
Clone this project and look at example.rb file.
It outlines all of the available operations.
require 'worldcatapi'
client = WORLDCATAPI::Client.new key: YOUR_KEY
response = client.OpenSearch(q: 'Ruby Development', format: 'atom', start: 1, count: 20, cformat: "all")
puts "Total Results #{response.header["totalResults"]
response.records.each do |record|
puts "title: #{record[:title]}\n"
puts "url: #{record[:link]}\n"
puts "authors: #{record[:author].join(", "}\n"
puts "description: #{record[:summary]}\n"
end
More examples available in example.rb
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
