video_chat_get 0.3.6.5 → 0.3.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile.lock +13 -15
- data/lib/site_list/youtubelive_analyze.rb +5 -3
- data/lib/video_chat_get/version.rb +1 -1
- data/video_chat_get.gemspec +5 -5
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e8b7b496420ff0e0f7759bc0e890bc401c07d221a5bb9eeb6224dcf9f0c7412
|
4
|
+
data.tar.gz: 3722c24c88213aa92c1a93137191228fc441dc2815207c406a9000008e0f2740
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8438b737d033dc41d9b9940608e674c0eef47a56b7bf2d1bb3e612ad40fcc2a5bf8b2527edf06daa657357dbc48ee52ce23b238340d0204facf237f76092a019
|
7
|
+
data.tar.gz: 4955e2f45237d9deff2f7ca509f1094bc78bae74421dda9250350a49e5d205ae5f53d655b6db5aefd6798bf2870c8ceff934889dbfc37a67ddedfa8aeae1f150
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.1
|
data/Gemfile.lock
CHANGED
@@ -1,23 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
video_chat_get (0.3.6.
|
4
|
+
video_chat_get (0.3.6.9)
|
5
5
|
httpclient (~> 2.8.3)
|
6
|
-
json (~> 2.
|
7
|
-
nokogiri (~> 1.
|
6
|
+
json (~> 2.3.0)
|
7
|
+
nokogiri (~> 1.10.9)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
diff-lcs (1.5.1)
|
13
13
|
httpclient (2.8.3)
|
14
|
-
json (2.
|
15
|
-
mini_portile2 (2.
|
16
|
-
nokogiri (1.
|
17
|
-
mini_portile2 (~> 2.
|
18
|
-
|
19
|
-
racc (1.8.0)
|
20
|
-
rake (13.2.1)
|
14
|
+
json (2.3.1)
|
15
|
+
mini_portile2 (2.4.0)
|
16
|
+
nokogiri (1.10.10)
|
17
|
+
mini_portile2 (~> 2.4.0)
|
18
|
+
rake (12.3.3)
|
21
19
|
rspec (3.13.0)
|
22
20
|
rspec-core (~> 3.13.0)
|
23
21
|
rspec-expectations (~> 3.13.0)
|
@@ -33,13 +31,13 @@ GEM
|
|
33
31
|
rspec-support (3.13.1)
|
34
32
|
|
35
33
|
PLATFORMS
|
36
|
-
|
34
|
+
ruby
|
37
35
|
|
38
36
|
DEPENDENCIES
|
39
|
-
bundler (~>
|
40
|
-
rake (~>
|
41
|
-
rspec (~> 3.
|
37
|
+
bundler (~> 1.16)
|
38
|
+
rake (~> 12.0)
|
39
|
+
rspec (~> 3.0)
|
42
40
|
video_chat_get!
|
43
41
|
|
44
42
|
BUNDLED WITH
|
45
|
-
|
43
|
+
1.16.1
|
@@ -104,11 +104,13 @@ class Youtubelive_analyze<Video_analyze
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
-
def chat_scrape(log_flag=true,log_path=@chatlog_filepath)
|
107
|
+
def chat_scrape(log_flag=true,log_path=@chatlog_filepath,progressbar=true)
|
108
108
|
|
109
109
|
chat_list=[]
|
110
110
|
chat_count=0
|
111
|
-
|
111
|
+
next_path = @videoinfo_body.dig("contents", "twoColumnWatchNextResults", "conversationBar", "liveChatRenderer", "continuations", 0, "reloadContinuationData", "continuation")
|
112
|
+
return chat_list if next_path.nil?
|
113
|
+
next_url=@CHAT_REQUEST_URL + next_path
|
112
114
|
|
113
115
|
while true do
|
114
116
|
begin
|
@@ -117,7 +119,7 @@ class Youtubelive_analyze<Video_analyze
|
|
117
119
|
chat_count+=1
|
118
120
|
chat_list.push chat
|
119
121
|
end
|
120
|
-
progressbar(chat_count,"chat_count_inf")
|
122
|
+
progressbar(chat_count,"chat_count_inf") if progressbar
|
121
123
|
|
122
124
|
next_url=@CHAT_REQUEST_URL + chat_body["continuationContents"]["liveChatContinuation"]["continuations"][0]["liveChatReplayContinuationData"]["continuation"]
|
123
125
|
sleep(1)
|
data/video_chat_get.gemspec
CHANGED
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "~>
|
27
|
-
spec.add_development_dependency "rake", "~>
|
28
|
-
spec.add_development_dependency "rspec", "~> 3.
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
27
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
29
|
|
30
30
|
spec.add_dependency "httpclient", "~> 2.8.3"
|
31
|
-
spec.add_dependency "json", "~> 2.
|
32
|
-
spec.add_dependency "nokogiri", "~> 1.
|
31
|
+
spec.add_dependency "json", "~> 2.3.0"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.10.9"
|
33
33
|
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_chat_get
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.6.
|
4
|
+
version: 0.3.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tf0101
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.16'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: httpclient
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
75
|
+
version: 2.3.0
|
76
76
|
type: :runtime
|
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: 2.
|
82
|
+
version: 2.3.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: nokogiri
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.10.9
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.10.9
|
97
97
|
description: videochat scraping
|
98
98
|
email:
|
99
99
|
- tf0101_emaile
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- ".circleci/config.yml"
|
106
106
|
- ".gitignore"
|
107
107
|
- ".rspec"
|
108
|
+
- ".ruby-version"
|
108
109
|
- ".travis.yml"
|
109
110
|
- CHANGELOG.md
|
110
111
|
- CODE_OF_CONDUCT.md
|
@@ -149,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
150
|
- !ruby/object:Gem::Version
|
150
151
|
version: '0'
|
151
152
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.1.2
|
153
154
|
signing_key:
|
154
155
|
specification_version: 4
|
155
156
|
summary: videochat scraping package
|