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 +4 -4
- data/README.md +13 -1
- data/lib/scraper_google_play/app.rb +1 -1
- data/lib/scraper_google_play/version.rb +1 -1
- data/lib/scraper_google_play.rb +0 -4
- 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: e056f14c4695911a94d819da6a4d6372203b982c
|
4
|
+
data.tar.gz: e62dba0fc36ba175729421f5a2038816ef6bed85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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),
|
data/lib/scraper_google_play.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|