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 }
@@ -1,3 +1,3 @@
1
1
  module ConsadoleAggregator
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consadole_aggregator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: