social_net 0.2.17 → 0.2.18
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e7557419918212c598ca94dfa3fb2161901eeb1f1bc872ef8a78043e347f532d
|
4
|
+
data.tar.gz: a8fa63d0bedaa8e0c4ede9af73d76af46f3481e51ca3e2c0529f2a26bd723357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c9d276efc23183af6c10c1d9c349b8b7f38aad705d3c983ea8d55fb46ad08eaabdd5f939261c8366206bc6e3e2c08def38ee546a46dfb424c04c79dd67acf71
|
7
|
+
data.tar.gz: cf8c88a0c7c7a9ea8479aa22440fbe9f93c3d388da09f1595bb5387dc9425f257e7e5d5bc8ecc96cfdcc3612fb14c5e975e74d0e8b5ea8d75a1182fbe4f11949
|
data/CHANGELOG.md
CHANGED
@@ -69,4 +69,8 @@ For more information about changelogs, check
|
|
69
69
|
|
70
70
|
## 0.2.17 - 2018-06-29
|
71
71
|
|
72
|
-
* [IMPROVEMENT] Add error handling for an unknown user when using `.videos` for a `Instagram::User`.
|
72
|
+
* [IMPROVEMENT] Add error handling for an unknown user when using `.videos` for a `Instagram::User`.
|
73
|
+
|
74
|
+
## 0.2.18 - 2019-01-03
|
75
|
+
|
76
|
+
* [BUGFIX] Fix scraping for `user.videos` method.
|
@@ -42,7 +42,7 @@ module SocialNet
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def parse_video_data(data)
|
45
|
-
data_string = data.search("script")[
|
45
|
+
data_string = data.search("script")[4].children.first
|
46
46
|
shortcodes = data_string.content.gsub(/window\._sharedData = /,"").gsub(/\\/,'').delete('\\"').scan(/shortcode:([\w_-]{10,39})/).flatten
|
47
47
|
[].tap do |videos|
|
48
48
|
shortcodes.each do |shortcode|
|
data/lib/social_net/version.rb
CHANGED
@@ -10,7 +10,7 @@ describe SocialNet::Instagram::User, :vcr do
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
let(:existing_username) { '
|
13
|
+
let(:existing_username) { 'kingbach' }
|
14
14
|
let(:unknown_username) { '01LjqweoojkjR' }
|
15
15
|
let(:private_username) { '4ever_kelz' }
|
16
16
|
let(:nonexistant_username) { 'ajmgangsta' }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_net
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Cohen Hoffing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
version: '0'
|
238
238
|
requirements: []
|
239
239
|
rubyforge_project:
|
240
|
-
rubygems_version: 2.6
|
240
|
+
rubygems_version: 2.7.6
|
241
241
|
signing_key:
|
242
242
|
specification_version: 4
|
243
243
|
summary: An API Client for social networks
|