使用rubynokogiri从搜狐旅游新闻频道抓点东东做成分类的训练预料:#!/usr/bin/ruby##Author:fulianghttp://fuliang.javaeye.com#require'open-uri'require'nokogiri'link_xpath="/html/body/div/div[4]/div[1]/div/ul/li/a"content_xpath='//*[@id="contentText"]'10.upto(53)do|index|url="http...
查看全文