consadole_aggregator 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -110,7 +110,7 @@ module ConsadoleAggregator
|
|
110
110
|
sites.name(:hochiyomiuri) do |site|
|
111
111
|
site.resource { HTTPClient.new.get_content('http://hochi.yomiuri.co.jp/soccer/jleague/index.htm').force_encoding('UTF-8') }
|
112
112
|
site.parse_list { |list| Nokogiri::HTML(list).search('div.list1 > ul > li a').reverse }
|
113
|
-
site.filter_article { |article| article.text =~
|
113
|
+
site.filter_article { |article| article.text =~ /^【札幌】/ }
|
114
114
|
site.parse_article { |article| { url:"http://hochi.yomiuri.co.jp#{article['href']}", title:article.text } }
|
115
115
|
end
|
116
116
|
|