video_chat_get 0.2.0 → 0.2.1
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/Gemfile.lock +1 -1
- data/lib/site_list/mildom_analyze.rb +2 -1
- data/lib/video_chat_get.rb +19 -16
- data/lib/video_chat_get/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94f8d90857170ebe5524126c1c3c0d6d819eff1816d535ad0fd2156ee5d08c8e
|
|
4
|
+
data.tar.gz: 344dc8d57be6c1124dd13a3cdb5bb6ebe85c2ee1060cdb7e48da41363353daeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aaa5bc65908f18d7450093ff7304f5e01a45fcfe4d027b1110c226f27ff03f85607870691e44c5c94bea533dc5e958d8732bfae1c58a26e096687e2d77cebfb3
|
|
7
|
+
data.tar.gz: 135ae6f0bc1ddff52b10e34c83f104cc0c82e3627eb0dda580dc78fa2da854fd9e657438d5fe7934843589c8142238668817d51a7beb064f27a5386b1aaab0fd
|
data/Gemfile.lock
CHANGED
|
@@ -13,12 +13,13 @@ class Mildom_analyze<Video_analyze
|
|
|
13
13
|
|
|
14
14
|
def initialize(url)
|
|
15
15
|
@VIDEOINFO_REQEST_URL="https://cloudac.mildom.com/nonolive/videocontent/playback/getPlaybackDetail?v_id="
|
|
16
|
+
@VIDEOINFO_REQEST_PARAMETER="&__platform=web"
|
|
16
17
|
@CHAT_REQEST_URL="https://cloudac.mildom.com/nonolive/videocontent/chat/replay?video_id="
|
|
17
18
|
@CHAT_REQEST_PARAMETER="&time_offset_ms="
|
|
18
19
|
|
|
19
20
|
@video_url=url
|
|
20
21
|
@video_id=videoid_get()
|
|
21
|
-
@videoinfo,@videoinfo_request_status=request_json_parse(@VIDEOINFO_REQEST_URL+@video_id)
|
|
22
|
+
@videoinfo,@videoinfo_request_status=request_json_parse(@VIDEOINFO_REQEST_URL+@video_id+@VIDEOINFO_REQEST_PARAMETER)
|
|
22
23
|
@chatlog_filepath="./"+@video_id+".txt"
|
|
23
24
|
end
|
|
24
25
|
|
data/lib/video_chat_get.rb
CHANGED
|
@@ -21,37 +21,40 @@ module VideoChatGet
|
|
|
21
21
|
@@YOUTUBELIVE_IDENTFIER="https://www.youtube.com/watch?"
|
|
22
22
|
@@TWITCASTING_IDENTFIER="https://twitcasting.tv/"
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
"hello"
|
|
26
|
-
end
|
|
27
|
-
|
|
24
|
+
|
|
28
25
|
def self.url_route(url)
|
|
29
26
|
|
|
30
27
|
if url.include?(@@OPENREC_IDENTFIER) then
|
|
31
28
|
puts "identifier:openrec videourl:#{url}"
|
|
32
29
|
obj=Openrec_analyze.new(url)
|
|
33
|
-
obj.chat_scrape
|
|
34
|
-
|
|
30
|
+
return obj.chat_scrape
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
if url.include?(@@MILDOM_IDENTFIER) then
|
|
35
34
|
puts "identifier:mildom videourl:#{url}"
|
|
36
35
|
obj=Mildom_analyze.new(url)
|
|
37
|
-
obj.chat_scrape
|
|
38
|
-
|
|
36
|
+
return obj.chat_scrape
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
if url.include?(@@WHOWATCH_IDENTFIER) then
|
|
39
40
|
puts "identifier:whowatch videourl:#{url}"
|
|
40
41
|
obj=Whowatch_analyze.new(url)
|
|
41
|
-
obj.chat_scrape
|
|
42
|
-
|
|
42
|
+
return obj.chat_scrape
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
if url.include?(@@YOUTUBELIVE_IDENTFIER) then
|
|
43
46
|
puts "identifier:youtube videourl:#{url}"
|
|
44
47
|
obj=Youtubelive_analyze.new(url)
|
|
45
|
-
obj.chat_scrape
|
|
46
|
-
|
|
48
|
+
return obj.chat_scrape
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if url.include?(@@TWITCASTING_IDENTFIER) then
|
|
47
52
|
puts "identifier:twitcasting videourl:#{url}"
|
|
48
53
|
obj=Twitcasting_analyze.new(url)
|
|
49
|
-
obj.chat_scrape
|
|
50
|
-
else
|
|
51
|
-
puts "urlerr"
|
|
54
|
+
return obj.chat_scrape
|
|
52
55
|
end
|
|
53
56
|
|
|
54
|
-
"
|
|
57
|
+
return "url error"
|
|
55
58
|
end
|
|
56
59
|
|
|
57
60
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tf0101
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|