ruby nokogiri 数据抓取
摘要:
记录测试代码require 'open-uri'require 'nokogiri'require 'pp'require 'json'weburl = {}weburl['sinawbo'] = 'http://hot.weibo.com/?leftnav=1' #新浪热门微博weburl['bk'] = 'http://www.qiushibaike.com/8hr/page/' #bkdef getInfo(key,url) if key == 'sin 阅读全文
posted @ 2013-02-06 17:32 d&lufd 阅读(738) 评论(0) 推荐(0) 编辑