video_chat_get 0.1.1 → 0.1.2
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/README.md +57 -16
- data/lib/site_list/openrec_analyze.rb +0 -29
- 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: fe6d8d4965ef4236416987dd4eb0e0c953a29d8a5e0dbc723c2d70a063046668
|
4
|
+
data.tar.gz: 5ebe81abde7347cde06f88be947865a665cb69e6e5422b8663ebb3f379194c52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d0ba1f3b315a8006361207336e6a9c9a766660d3635c21d3a43044b006b50d113c84c5bf591378a72f3f423a1e77db9c3b4bd262845fbfe51fcaa1fcd65c626
|
7
|
+
data.tar.gz: 7bb4fcebe188bc33c89e45d979bca5f0a3cd886a40d2d44ae53d28061f307aafbafc9d99eade6f4911dc51f8e777a3dd2d6bea257cca3ab9002e642c29ce5816
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,18 @@
|
|
1
1
|
# VideoChatGet
|
2
2
|
|
3
|
-
|
3
|
+
This is a ruby package that gets a list of chats from the broadcasts of video distribution sites.
|
4
|
+
|
5
|
+
## Support sites
|
6
|
+
|site_name |status |
|
7
|
+
|:---|:---:|
|
8
|
+
|mildom |◯ |
|
9
|
+
|niconico | |
|
10
|
+
|openrec |◯ |
|
11
|
+
|twitcast | |
|
12
|
+
|twitch | |
|
13
|
+
|whowatch |◯ |
|
14
|
+
|youtubelive |◯ |
|
4
15
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
16
|
|
7
17
|
## Installation
|
8
18
|
|
@@ -28,27 +38,58 @@ use CLI:
|
|
28
38
|
|
29
39
|
### In code
|
30
40
|
```ruby
|
31
|
-
|
41
|
+
require 'video_chat_get'
|
42
|
+
|
43
|
+
#mildom
|
44
|
+
obj=Mildom_analyze.new(url)
|
45
|
+
chat_list=obj.chat_scrape
|
46
|
+
|
47
|
+
#openrec
|
48
|
+
obj=Openrec_analyze.new(url)
|
49
|
+
chat_list=obj.chat_scrape
|
50
|
+
|
51
|
+
#whowatch
|
52
|
+
obj=Whowatch_analyze.new(url)
|
53
|
+
chat_list=obj.chat_scrape
|
54
|
+
|
55
|
+
#youtubelive
|
56
|
+
obj=Youtubelive_analyze.new(url)
|
32
57
|
chat_list=obj.chat_scrape
|
58
|
+
|
33
59
|
```
|
34
60
|
|
35
|
-
##
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
61
|
+
## Document
|
62
|
+
Basically use instance method
|
63
|
+
|
64
|
+
↓ Example of use
|
65
|
+
```ruby
|
66
|
+
obj=Mildom_analyze.new(url)
|
67
|
+
video_info=obj.videoinfo
|
68
|
+
chat_list=obj.chat_scrape()
|
69
|
+
```
|
70
|
+
|
71
|
+
### instance variable
|
72
|
+
@videoinfo
|
73
|
+
|
74
|
+
・Returns: hash
|
75
|
+
   We can acquire broadcast frame information.
|
45
76
|
|
77
|
+
### instance method
|
78
|
+
#chat_scrape(log_flag=true,log_path="./videoid.txt")
|
79
|
+
|
80
|
+
Parameters:
|
81
|
+
   ・log_flag:boolean (default=true)
|
82
|
+
    Whether to write chat list to file, write when true.
|
46
83
|
|
47
|
-
|
84
|
+
   ・log_path:string (default="./videoid.txt")
|
85
|
+
    File path to write chat list.
|
48
86
|
|
49
|
-
|
87
|
+
Returns:
|
88
|
+
   ・chat_list:array
|
89
|
+
    Chat data list. Chat information is stored as dictionary data,
|
90
|
+
    and this dictionary data exists for the number of chats.
|
50
91
|
|
51
|
-
|
92
|
+
    chat_list=[hash,hash,...]
|
52
93
|
|
53
94
|
## Contributing
|
54
95
|
|
@@ -3,36 +3,7 @@ require 'requests/request'
|
|
3
3
|
require 'progressbars/progressbar'
|
4
4
|
require 'file_operats/file_operat_chatdata'
|
5
5
|
|
6
|
-
|
7
6
|
"""
|
8
|
-
Openrec_analyze
|
9
|
-
|
10
|
-
・Explanation
|
11
|
-
get chat data from openrec
|
12
|
-
|
13
|
-
・use
|
14
|
-
obj=Openrec_analyze.new(url)
|
15
|
-
obj.chat_scrape
|
16
|
-
|
17
|
-
・instance variable
|
18
|
-
video_id(String):video identifier
|
19
|
-
videoinfo(Hash):Video information
|
20
|
-
videoinfo_request_status(Integer):Videoinformation request statuscode
|
21
|
-
|
22
|
-
・method
|
23
|
-
private method:
|
24
|
-
videoid_get!(url)
|
25
|
-
chat_nextpage_get(time_key)
|
26
|
-
|
27
|
-
public method:
|
28
|
-
chat_scrape()
|
29
|
-
chatinfo_request_status()
|
30
|
-
|
31
|
-
・test
|
32
|
-
Check if the request statuscode is 200
|
33
|
-
|
34
|
-
videoinfo_request_status==200
|
35
|
-
chatinfo_request_status==200
|
36
7
|
"""
|
37
8
|
|
38
9
|
class Openrec_analyze<Video_analyze
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tf0101
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|