nytimesbooks 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nytimesbooks.rb +0 -1
- data/lib/nytimesbooks/books.rb +4 -4
- data/lib/nytimesbooks/version.rb +1 -1
- data/nytimesbooks-0.2.0.gem +0 -0
- data/nytimesbooks-0.3.0.gem +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c7cd603cf60fccb3d8e3af78dd96dfd9d1511d161dbcb5dab859d1dc2849cb
|
4
|
+
data.tar.gz: 3eceaee49827fa0cf9f2754163df64be59fd3d3a85641e574119068daa1704a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cbfb36018eda53841b2c7ac94af72ed6989f907d672fb184a632981449ccbeaeccd82dcb96822db85dda302dccccac1b6e2f03e904de3c09e6417a632c09a77
|
7
|
+
data.tar.gz: 6fe9c92c479f3fc2ddbea2448244f681ee098544f7b3a7ec88b3dd22874377960aef17ca489aaef89313894fd2c9932eaddb20934cf13271778dd79bb8d39c9e
|
data/Gemfile.lock
CHANGED
data/lib/nytimesbooks.rb
CHANGED
data/lib/nytimesbooks/books.rb
CHANGED
@@ -4,11 +4,11 @@ class Nytimesbooks::Book
|
|
4
4
|
|
5
5
|
def self.new_book(doc)
|
6
6
|
new_array = []
|
7
|
-
doc.css("
|
7
|
+
doc.css("#app #site-content ol li.css-13y32ub").each do |book|
|
8
8
|
new_book = self.new
|
9
|
-
new_book.name = book.css("css-5pe77f").text
|
10
|
-
new_book.author = book.css("css-hjukut").text
|
11
|
-
new_book.bookdescription = book.css("css-14lubdp").text
|
9
|
+
new_book.name = book.css("h3.css-5pe77f").text
|
10
|
+
new_book.author = book.css("p.css-hjukut").text
|
11
|
+
new_book.bookdescription = book.css("p.css-14lubdp").text
|
12
12
|
new_array << new_book
|
13
13
|
end
|
14
14
|
new_array
|
data/lib/nytimesbooks/version.rb
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nytimesbooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'Alexandra Fren'"
|
@@ -75,6 +75,8 @@ files:
|
|
75
75
|
- lib/nytimesbooks/cli.rb
|
76
76
|
- lib/nytimesbooks/scraper.rb
|
77
77
|
- lib/nytimesbooks/version.rb
|
78
|
+
- nytimesbooks-0.2.0.gem
|
79
|
+
- nytimesbooks-0.3.0.gem
|
78
80
|
- nytimesbooks.gemspec
|
79
81
|
homepage: https://github.com/alexandrafren/nytimesbooks-cli-app
|
80
82
|
licenses: []
|