funky 0.2.36 → 0.2.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/funky.gemspec +1 -1
- data/lib/funky/html/parser.rb +3 -1
- data/lib/funky/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 984e32f8d6cb12181eff221cde838017ff6fc15aaca57a69093df54c5af42c07
|
4
|
+
data.tar.gz: 96538bad213b30baa2842f0a8c9f893a18efc572dfd344b51c196acc1232b85d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e7b049f92d06ddceb1e399b1330c7229a7e2e997e28e651cc6aa98d053b1addd7627e121ee9f8206dfc6c0a146fad9330ee792c6e29b3733ec9b27a12fb4d2a
|
7
|
+
data.tar.gz: f5b2bc113b36a586342baf0569ec54525ff2c535e52ff0ddb076ee7a93dbbd237c31004d02901f927de7ca5ad35db03f04f85a691426a1db3ab59fa2f91209cd
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 0.2.37 - 2019/07/23
|
10
|
+
|
11
|
+
* [BUGFIX] Allow funky to scrape view count for more videos
|
12
|
+
|
9
13
|
## 0.2.36 - 2019/03/05
|
10
14
|
|
11
15
|
* [BUGFIX] Fetch comment count, share count, like count for Facebook
|
@@ -14,8 +18,8 @@ videos with different HTML.
|
|
14
18
|
## 0.2.35 - 2019/01/14
|
15
19
|
|
16
20
|
* [ENHANCEMENT] Use 2.10 of Facebook Graph API (upgrade from 2.8).
|
17
|
-
- There will be deprecations in v2.8 of the Facebook Graph API soon. Check out [the changelog](https://developers.facebook.com/docs/apps/changelog).
|
18
|
-
- Funky API is not changed. (
|
21
|
+
- There will be deprecations in v2.8 of the Facebook Graph API soon. Check out [the changelog](https://developers.facebook.com/docs/apps/changelog).
|
22
|
+
- Funky API is not changed. (The same test is still passing)
|
19
23
|
|
20
24
|
## 0.2.34 - 2018/10/19
|
21
25
|
|
data/funky.gemspec
CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
25
|
spec.add_development_dependency "simplecov", "0.11.2"
|
26
|
-
spec.add_development_dependency "yard", "0.9.
|
26
|
+
spec.add_development_dependency "yard", "0.9.20"
|
27
27
|
spec.add_development_dependency 'coveralls', "0.8.13"
|
28
28
|
end
|
data/lib/funky/html/parser.rb
CHANGED
@@ -22,8 +22,10 @@ module Funky
|
|
22
22
|
def extract_views_from(html)
|
23
23
|
html.match(/<div><\/div><span class="fcg">\D*([\d,.]+)/)
|
24
24
|
html.match(/postViewCount:"([\d,.]*?)",/) if $1.nil?
|
25
|
-
html.match %r{([\d,.]*?) views from this post} if $1.nil?
|
26
25
|
html.match /<div class=\"_1vx9\"><span>([\d,.]*?) .*?<\/span><\/div>/ if $1.nil?
|
26
|
+
html.match /id=\"u_0_w\">([\d,.]*?) .*?<\/span><\/div>/ if $1.nil?
|
27
|
+
html.match />([\d,.]*?) Views<\/span><\/div>/ if $1.nil?
|
28
|
+
html.match %r{([\d,.]*?) views from this post} if $1.nil?
|
27
29
|
matched_count $1
|
28
30
|
end
|
29
31
|
|
data/lib/funky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: funky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.9.
|
75
|
+
version: 0.9.20
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.9.
|
82
|
+
version: 0.9.20
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: coveralls
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.7.6
|
152
|
+
rubygems_version: 2.7.6.2
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Funky is a Ruby library to fetch video data.
|