consadole_aggregator 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -115,7 +115,7 @@ module ConsadoleAggregator
|
|
115
115
|
end
|
116
116
|
|
117
117
|
sites.name(:asahi) do |site|
|
118
|
-
site.resource { HTTPClient.new.get_content('http://www.asahi.com/sports/list/soccer/national_news.html').force_encoding.encode('UTF-8') }
|
118
|
+
site.resource { HTTPClient.new.get_content('http://www.asahi.com/sports/list/soccer/national_news.html').force_encoding('EUC-JP').encode('UTF-8') }
|
119
119
|
site.parse_list { |list| Nokogiri::HTML(list).search('#HeadLine2 dl dt a').reverse }
|
120
120
|
site.filter_article { |article| article.text =~ /札幌|コンサ/ }
|
121
121
|
site.parse_article { |article| { url: "http://www.asahi.com#{article['href']}", title: article.text } }
|