[OAI-implementers] ruby-oai

Edward Summers ehs at pobox.com
Mon Apr 24 10:31:08 EDT 2006

In case there are any other rubyists on the list I thought they might  
be interested in ruby-oai [1]. Predictably it allows you to:

   require 'oai'
   client = OAI::Client.new 'http://www.pubmedcentral.gov/oai/oai.cgi'

   last_check = Date.new(2004,1,1)

   for record in client.list_records :from => last_check
     puts record.metadata

In the example record.metadata is actually a REXML::Element object  
that can be manipulated and written out. The other 5 verbs are  
supported as well. ruby-oai is available as a gem on rubyforge.org so  
if you use gems you just need to:

   gem install oai


[1] http://textualize.com/ruby-oai

More information about the OAI-implementers mailing list