chrome_store_search 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chrome_store_search/string_utility.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd6e44e40bf636ce3711d22bf034cee102fe4ace
|
4
|
+
data.tar.gz: c9b00910be650c3212d1ad38cf5161a530180b0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f56442aad1c47c8c468e1d60584d74ca376ded84deac32f25db3d993fdf764cec0a4f83a84507bd8e71a6409d71ebb943c524c46a51eec375be5e61d657a0e58
|
7
|
+
data.tar.gz: bf9360e2157af68b56ab9b2fe25da6f768fe80dfa56bdbb6eeddf4897c98dc08248fc887c3ef59ed86240d7e460ccbe95b849e0fcd712003adccdc64cc33fdf9
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
require 'json'
|
3
|
+
require 'nokogiri'
|
3
4
|
|
4
5
|
module ChromeStoreSearch
|
5
6
|
class StringUtility
|
@@ -16,7 +17,6 @@ module ChromeStoreSearch
|
|
16
17
|
end
|
17
18
|
end
|
18
19
|
|
19
|
-
|
20
20
|
def self.get_pv
|
21
21
|
conn = Faraday.new(:url => CHROME_STORE_URL) do |faraday|
|
22
22
|
faraday.request :url_encoded # form-encode POST params
|
@@ -25,7 +25,7 @@ module ChromeStoreSearch
|
|
25
25
|
res = conn.get ''
|
26
26
|
doc = Nokogiri::HTML(res.body)
|
27
27
|
cws_session_data = doc.xpath("//script[@id='cws-session-data']").first.content
|
28
|
-
JSON.parse(cws_session_data)[-
|
28
|
+
JSON.parse(cws_session_data)[-8]
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chrome_store_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Chen
|
@@ -76,11 +76,11 @@ executables: []
|
|
76
76
|
extensions: []
|
77
77
|
extra_rdoc_files: []
|
78
78
|
files:
|
79
|
-
- lib/chrome_store_search.rb
|
80
79
|
- lib/chrome_store_search/app.rb
|
81
80
|
- lib/chrome_store_search/app_parser.rb
|
82
81
|
- lib/chrome_store_search/search.rb
|
83
82
|
- lib/chrome_store_search/string_utility.rb
|
83
|
+
- lib/chrome_store_search.rb
|
84
84
|
homepage: https://github.com/grantchen/chrome_store_search
|
85
85
|
licenses:
|
86
86
|
- MIT
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.0.14
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: chrome web store search
|