play_scrape 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/play_scrape/version.rb +1 -1
- data/lib/play_scrape.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 182ca4d7ec89471e96bac8a303344ab98f64aa02
|
|
4
|
+
data.tar.gz: bf090562f1c9bd971f1644c9ff4dc606e9dccba7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 556e971769356b110afe67bd029d55fd60cea17dd0b1c312b1b404f40b532a57b706b1a7fd1002354902b63e0ba510ef7d5956fa06f423fb51f23365d86e7b68
|
|
7
|
+
data.tar.gz: 1d4624eebd66ebc8e9e5bd4a2e021f1b252304c3769aefecad99ba258deecb6a51dab97a1f037e4f226acbaa8747464b18ae5d610f7f20bfbc553812e14de7e3
|
data/lib/play_scrape/version.rb
CHANGED
data/lib/play_scrape.rb
CHANGED
|
@@ -15,6 +15,8 @@ module PlayScrape
|
|
|
15
15
|
APP_DEV_URL_CSS_PATH = 'a.dev-link'
|
|
16
16
|
APP_INSTALL_CSS_PATH = 'div.details-section div.details-section-contents div.meta-info div.content'
|
|
17
17
|
|
|
18
|
+
|
|
19
|
+
# Returns @app_info of AppInfo class
|
|
18
20
|
def self.scrape_app_info(package_name)
|
|
19
21
|
res = Typhoeus.get(PLAY_URL + package_name)
|
|
20
22
|
|
|
@@ -40,7 +42,7 @@ module PlayScrape
|
|
|
40
42
|
app_info.description = description.inner_html
|
|
41
43
|
app_info.rating = app_rating.text.to_f
|
|
42
44
|
app_info.num_ratings = num_ratings.text.gsub(",", "").to_i
|
|
43
|
-
app_info.icon_url = icon_url
|
|
45
|
+
app_info.icon_url = icon_url.attributes['src'].value
|
|
44
46
|
app_info.dev_url = dev_url
|
|
45
47
|
app_info.min_installs = installs.first
|
|
46
48
|
app_info.max_installs = installs.last
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: play_scrape
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Villena
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|