play_scrape 0.0.1 → 0.0.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: 0787dd4d682920d20ed04a52a220c4497617ffd0
4
- data.tar.gz: 319bb4899cf0fc4ac371e89e19b46b77fca9db47
3
+ metadata.gz: 182ca4d7ec89471e96bac8a303344ab98f64aa02
4
+ data.tar.gz: bf090562f1c9bd971f1644c9ff4dc606e9dccba7
5
5
  SHA512:
6
- metadata.gz: 93ef5d8b3c7e242448bec8ea7eb50dd00370c59c8f67009141e1a594622ecc835ee0c53021021423713d428ae8cbdeeeadc8984d565805929b4ce88e93467d3f
7
- data.tar.gz: 3b88a8858521f8703441b53fc632ca26be0627ddeb99356f78beee73f88e358f6f3c20e88d57e014aeab785c2fabdfffff031b0cf6738213de35ab8b8712bfba
6
+ metadata.gz: 556e971769356b110afe67bd029d55fd60cea17dd0b1c312b1b404f40b532a57b706b1a7fd1002354902b63e0ba510ef7d5956fa06f423fb51f23365d86e7b68
7
+ data.tar.gz: 1d4624eebd66ebc8e9e5bd4a2e021f1b252304c3769aefecad99ba258deecb6a51dab97a1f037e4f226acbaa8747464b18ae5d610f7f20bfbc553812e14de7e3
@@ -1,3 +1,3 @@
1
1
  module PlayScrape
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-08 00:00:00.000000000 Z
11
+ date: 2013-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler