play_scrape 0.0.4 → 0.0.5

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: 844f04d88029421e7499a1c914da1491423fc2f1
4
- data.tar.gz: f68d3bfd9eba21b1ea0e04ab083fbd9e279ba226
3
+ metadata.gz: 2a4ba187ad1a3d5721e9d2b2cbd8907fa978d2e7
4
+ data.tar.gz: 7c333634a6266d78c7daaee8b3839d368a89ea29
5
5
  SHA512:
6
- metadata.gz: a2403b6fca41c3b618e5ef5cfae38382870894cd360ad2e1a914676668ed4b50690c0e89ef31a551f421ca91cf4a16512be4210808acf79f5f7086c9606222d1
7
- data.tar.gz: 4d583fc3334542736a4752cf952d7c6eecc4b6052e25f45a3fc419dd2d5cdf938fabf73d1305d6afe6f347bf667e3b8fcbeba27fc3080a95cdbf717125f18924
6
+ metadata.gz: 0ed63e62a32758c7758a134d4c489ee6ea2173c4451cc6727d7546e2d55c58167f73abd575816b3b3306682a3561108c3224ca3c53336e9ec3a61ee8597fdf9b
7
+ data.tar.gz: 4ac002943742b656332a3a3bbe35bba5267ee5486093636ec309872316b0db86658394fa7639d55228f2ac8c9848434b3b41579712903172c31a366d828ca45f
@@ -1,3 +1,3 @@
1
1
  module PlayScrape
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/play_scrape.rb CHANGED
@@ -8,7 +8,7 @@ module PlayScrape
8
8
 
9
9
  PLAY_URL = 'https://play.google.com/store/apps/details?id='
10
10
 
11
- APP_DESC_CSS_PATH = 'html body div#wrapper.wrapper-with-footer div#body-content div.details-wrapper div.details-section div.details-section-contents div.show-more-content div.app-orig-desc'
11
+ APP_DESC_CSS_PATH = 'html body div#wrapper.wrapper-with-footer div#body-content div.details-wrapper div.details-section div.details-section-contents div.show-more-content div.id-app-orig-desc'
12
12
  APP_ICON_CSS_PATH = 'html body div#wrapper.wrapper-with-footer div#body-content div.details-wrapper div.details-info div.cover-container img.cover-image'
13
13
  APP_RATING_CSS_PATH = 'div.score'
14
14
  APP_NUM_RATINGS_CSS_PATH = 'span.reviews-num'
@@ -23,7 +23,7 @@ module PlayScrape
23
23
 
24
24
  # Returns @app_info of AppInfo class
25
25
  def self.scrape_app_info(package_name)
26
- res = Typhoeus.get(PLAY_URL + package_name)
26
+ res = self.get_html_page_for(package_name)
27
27
 
28
28
  if res.code == 200
29
29
  app_info = PlayScrape::AppInfo.new
@@ -60,4 +60,8 @@ module PlayScrape
60
60
  app_info
61
61
  end
62
62
  end
63
+
64
+ def self.get_html_page_for(package_name)
65
+ res = Typhoeus.get(PLAY_URL + package_name)
66
+ end
63
67
  end
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
4
+ version: 0.0.5
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-12-11 00:00:00.000000000 Z
11
+ date: 2013-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler