google_play_search 0.0.15 → 0.0.16

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: 020076ceb9a218e038f781743aef22442e764ac4
4
- data.tar.gz: baf36ed4f544cc1ef3e7cb2e271ce01b43a1e34d
3
+ metadata.gz: 027009ccc4cfacf70336ea9a6f22165ce29be641
4
+ data.tar.gz: 3567d8d88193d5cb6c05a9f1e33423888302c46a
5
5
  SHA512:
6
- metadata.gz: 8f354c93eb871c23102072803a88f9f25aec420cfe3c000b41c262170fabaa610ce8a83b381b880a53ffa6c81b38797045c8d7d403854ff8bd6fec44efb7b9d7
7
- data.tar.gz: 47ffd76b43bc9aa0d40e35ab280a1787e78627266a00d686e269d1e37b0ab7294c36dbf2046318f07d1c82b7fed2002953cec518bdd9145aea5da6bc2e41af33
6
+ metadata.gz: 415309193d8cbe1523a33c61543693944b9301f8b63b9c3f53f39811813ef96c34620d01eb87c0de63d5bb141ed96373069fd25c07e040d011fd2ffbb231a25c
7
+ data.tar.gz: 826e0ae28a61581da5c56e2a5232e623d60377e90bdadb3b53850e7989c2468738ca607fbdceae698560e7539bb4d5bbfb43fb9e13da029951e12985b4abc2a2
@@ -8,7 +8,8 @@ module GooglePlaySearch
8
8
  :short_description, :rating, :reviews, :price,
9
9
  :version, :installs, :last_updated, :size,
10
10
  :requires_android, :content_rating, :developer_website,
11
- :developer_email, :developer_address, :screenshots
11
+ :developer_email, :developer_address, :screenshots,
12
+ :long_description
12
13
 
13
14
  def get_all_details()
14
15
  html = open(self.url).read()
@@ -26,6 +27,7 @@ module GooglePlaySearch
26
27
  self.developer_address = get_developer_address(google_play_html)
27
28
  self.reviews = get_reviews(google_play_html)
28
29
  self.screenshots = get_screenshots(google_play_html)
30
+ self.long_description = get_long_description(google_play_html)
29
31
  self
30
32
  rescue
31
33
  self
@@ -84,6 +86,11 @@ module GooglePlaySearch
84
86
  address.content.strip if address
85
87
  end
86
88
 
89
+ def get_long_description(google_play_html)
90
+ long_description = google_play_html.search("div[class='id-app-orig-desc']").first
91
+ long_description.content.strip if long_description
92
+ end
93
+
87
94
  def get_reviews(google_play_html)
88
95
  reviews = []
89
96
  google_play_html.search("div[class='single-review']").each do |ele|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_play_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri