consadole_aggregator 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -121,6 +121,13 @@ module ConsadoleAggregator
|
|
121
121
|
site.parse_article { |article| { url: "http://www.asahi.com#{article['href']}", title: article.text } }
|
122
122
|
end
|
123
123
|
|
124
|
+
sites.name(:mainichi) do |site|
|
125
|
+
site.resource { HTTPClient.new.get_content('http://mainichi.jp/area/hokkaido/archive/').force_encoding('UTF-8') }
|
126
|
+
site.parse_list { |list| Nokogiri::HTML(list).search('#Archive dl dd a').reverse }
|
127
|
+
site.filter_article { |article| article.text =~ /コンサドーレ/ }
|
128
|
+
site.parse_article { |article| { url: article['href'], title: article.text.strip } }
|
129
|
+
end
|
130
|
+
|
124
131
|
sites.name(:forzaconsadole) do |site|
|
125
132
|
site.resource { HTTPClient.new.get_content('http://www.hokkaido-np.co.jp/news/e_index/?g=consadole').encode('UTF-8') }
|
126
133
|
site.parse_list { |list| Nokogiri::HTML(list).search('ul.iSwBox > li > a').reverse }
|