top-headlines 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18a04861f9e8ec16bdb8cad13363f477d9181829
4
- data.tar.gz: 91b075f928689b14a9db065a9eb089daf91d34d8
3
+ metadata.gz: f975cdd9af4d92380c35a6ebe8c43e963438fb74
4
+ data.tar.gz: eca9124291061e3a9d0995de3b0219feeb4c7a7b
5
5
  SHA512:
6
- metadata.gz: e2f354b01e0f05ebde920e3d1e8526acdc1ed5ff284e61e6080b56fa3c36e59a84a0865cb019e7e26280d56bf29e07fdc2400eb8695c18b38053d05266ed19d6
7
- data.tar.gz: d6d6274abf21b0c6965766d4f5fed656080ab6fc3636e98c58026224a5278ab7bd6c258579b0ee5136a6e94faf654d796d00f3f226a8005e434bff9d0c0d10ef
6
+ metadata.gz: 72c4aca9ae4faadbbbeb404a393c09bfb9b4f52ba629a2c27c2174a9182975d2d70af88d02418c1aeaaca713694329d8829692ba4802a0d28efa4a9e8bc9e217
7
+ data.tar.gz: 160b0f3c4aded45e075c52c7ebb49ae5ce6e96c90e4a09ced08ae773db56d86ec3b8f133439923cfca327640f962a8216335f28e6160ddfb92947fe14b237a3f
@@ -97,6 +97,30 @@ class TopHeadlines::Source
97
97
  urls_selector: "h5.entry-title.node-title.title",
98
98
  child_selector: "a:first-child"
99
99
  },
100
+ "LE MONDE" => {
101
+ url: "http://www.lemonde.fr/",
102
+ headlines_selector: "div.titres_edito h1, h2", # NEEDS TO REMOVE '14' and '13' from beginning of 1st and 3rd headlines
103
+ urls_selector: "div.titres_edito article",
104
+ child_selector: "a"
105
+ },
106
+ "INDEPENDENT UK" => {
107
+ url: "http://www.independent.co.uk",
108
+ headlines_selector: "h1:not(.box-title), h2",
109
+ urls_selector: "div.row[data-tb-region='row-2'] div.content h1, div.grid-mod-card-list ul li",
110
+ child_selector: "a"
111
+ },
112
+ "NPR" => {
113
+ url: "http://www.npr.org/",
114
+ headlines_selector: "article:not(.hp-item.attachment.volume-low) h1.title:first-child",
115
+ urls_selector: "section#main-section div.story-text",
116
+ child_selector: "a:nth-child(2)"
117
+ },
118
+ # "TELEGRAPH" => {
119
+ # url: "http://www.telegraph.co.uk/",
120
+ # headlines_selector: "main h3 a",
121
+ # urls_selector: "main div[class*='list-of-entities'] h3", # NEED TO FIX LINKS
122
+ # child_selector: "a:first-child"
123
+ # },
100
124
  # "REUTERS" => {
101
125
  # url: "http://www.reuters.com/news",
102
126
  # headlines_selector: "div.column1.gridPanel.grid8 div.moduleBody :not(div.photo) a", # NEED TO ACCOUNT FOR :not(span a) at same level as a
@@ -1,3 +1,3 @@
1
1
  module TopHeadlines
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: top-headlines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Newburgh