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 +4 -4
- data/lib/play_scrape/version.rb +1 -1
- data/lib/play_scrape.rb +6 -2
- 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: 2a4ba187ad1a3d5721e9d2b2cbd8907fa978d2e7
|
4
|
+
data.tar.gz: 7c333634a6266d78c7daaee8b3839d368a89ea29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed63e62a32758c7758a134d4c489ee6ea2173c4451cc6727d7546e2d55c58167f73abd575816b3b3306682a3561108c3224ca3c53336e9ec3a61ee8597fdf9b
|
7
|
+
data.tar.gz: 4ac002943742b656332a3a3bbe35bba5267ee5486093636ec309872316b0db86658394fa7639d55228f2ac8c9848434b3b41579712903172c31a366d828ca45f
|
data/lib/play_scrape/version.rb
CHANGED
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 =
|
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
|
+
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
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|