scraper_google_play 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 873a6885b89d1bb51eca4d57321872101fe26507
4
- data.tar.gz: 80b40eb8d47d21a62b3e44a88ed2155d94d7b21b
3
+ metadata.gz: e056f14c4695911a94d819da6a4d6372203b982c
4
+ data.tar.gz: e62dba0fc36ba175729421f5a2038816ef6bed85
5
5
  SHA512:
6
- metadata.gz: 7220edc8f46082ee02998f149f4cf78fe50af5d7415f1c5a20d82acb5e8df55603254717e3dabe493e9329ac5ab44138dfa71569845793539ad8cbed0f73d283
7
- data.tar.gz: e3be5702f411b10df4a68e62b7502bf2ad45e93f2a41043b9f27fe631219bbf10643b2775d26b55e4f5a0b232de5e04e22f845a09bfd4ef6e78bcc97c0e926ea
6
+ metadata.gz: bcb86d35748ec58b86373d3b0eb28e08ea32fb6d7dc4506b0f662a7885d6fda892f61991235b3a8e70d314c1d4f4150bd7bf69d9645a962ec551d632012b5b33
7
+ data.tar.gz: 04f6df677161c917e2610b52a79a8985264cbc0bf0e5fe18a1668ad4eab1f5bb982cf3f4dd64e26e9425f3f53c74617a5cbff529cf02604e216e86f0e338e59e
data/README.md CHANGED
@@ -21,9 +21,21 @@ Or install it yourself as:
21
21
  $ gem install scraper_google_play
22
22
 
23
23
  ## Usage
24
+ Get info a app
25
+ ```
26
+ ScrapperGooglePlay.App('com.webmely.serverlist').info
27
+ ```
24
28
 
25
- TODO: Write usage instructions here
29
+ Get list apps in a category
30
+ ```
31
+ ScrapperGooglePlay.Category('entertaiment').all_app
32
+ ScrapperGooglePlay.Category('entertaiment').topselling_free
33
+ ```
26
34
 
35
+ Get apps result with keyword
36
+ ```
37
+ ScrapperGooglePlay.Search('keyword').apps
38
+ ```
27
39
  ## Development
28
40
 
29
41
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -36,7 +36,7 @@ class ScraperGooglePlay::App < ScraperGooglePlay::Base
36
36
  title: detailsInfo.at('.document-title').text.strip,
37
37
  genre_text: mainGenre.text().strip,
38
38
  genre_id: mainGenre.attr('href').split('/')[4],
39
- version: @page.at('.details-section-contents div.content[itemprop="softwareVersion"]').text().strip(),
39
+ version: @page.at('.details-section-contents div.content[itemprop="softwareVersion"]') ? @page.at('.details-section-contents div.content[itemprop="softwareVersion"]').text().strip() : nil,
40
40
  description: @page.at('.details-section-contents div[itemprop=description] div').text().gsub(/<\/p>/, '\n</p>'),
41
41
  android_version_text: android_version_text,
42
42
  android_version: normalizeAndroidVersion(android_version_text),
@@ -1,3 +1,3 @@
1
1
  module ScraperGooglePlay
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -3,10 +3,6 @@ module ScraperGooglePlay
3
3
  APPURL = "https://play.google.com/store/apps/details"
4
4
  CATEGORYURL = "https://play.google.com/store/apps/category/"
5
5
  SEARCHURL = "https://play.google.com/store/search"
6
-
7
- def self.lorem
8
- "lorem"
9
- end
10
6
  end
11
7
 
12
8
  require 'mechanize' # and any other gems you need
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scraper_google_play
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nguyen Bach
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-05 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler