11件ヒット
[1-11件を表示]
(0.018秒)
検索結果
先頭1件
-
rss (39768.0)
-
RSS を扱うためのライブラリです。
...RSS を扱うためのライブラリです。
=== 参考
* RSS 0.91 http://backend.userland.com/rss091
* RSS 1.0 http://purl.org/rss/1.0/spec
* RSS 2.0 http://www.rssboard.org/rss-specification
* Atom 1.0 https://www.ietf.org/rfc/rfc4287.txt
=== 注意
RSS ParserはRSS 0.9x/1.0/2.0, A......ポートしていますが,RSS 0.90
はサポートしてません.ごめんなさい.
RSS のモジュールはそれぞれ、
* Dublin Core モジュール http://web.resource.org/rss/1.0/modules/dc/
* Syndication モジュール http://web.resource.org/rss/1.0/modules/syndication/
* C......いものしか含まれていないは
ずなので以下のようにソートできます。
def print_items(items)
items.sort do |x, y|
y.dc_date <=> x.dc_date
end.each do |item|
puts "#{item.dc_date.localtime.iso8601} : #{item.title} : #{item.description}"
end
end...