您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

使用FeedTools解析RSS代码示例

2024/3/3 20:14:28发布21次查看
require 'rubygems' require 'feed_tools' feed = feedtools::feed.open('http://www.rubyinside.com/feed/') puts "this feed's title is #{feed.title}" puts "this feed's web site is at #{feed.link}" feed.items.each do |item| puts item.title + "\n---\n" + item.description + "\n\n" end
以上就是使用feedtools解析rss代码示例的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product