video_chat_get 0.1.1 → 0.1.2

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
2
  SHA256:
3
- metadata.gz: 5face6a3d0ab762647671b20730566d92e5b9fc4b519b13aa7c59f6cab2e8d43
4
- data.tar.gz: 01edaee8d261c536e2b29602f877a59cb10847684cfdb001d54072164f3d51fe
3
+ metadata.gz: fe6d8d4965ef4236416987dd4eb0e0c953a29d8a5e0dbc723c2d70a063046668
4
+ data.tar.gz: 5ebe81abde7347cde06f88be947865a665cb69e6e5422b8663ebb3f379194c52
5
5
  SHA512:
6
- metadata.gz: 12c16efdabf9b58691c2b2d28574311cdd2823567dfe72e1dfec63709b86c4806277772201531b16761910afc68bb3d618d3ef1892b30f4a23bd58acb18e41a0
7
- data.tar.gz: 5dfabfc662a3f62721c178632f8cfe6ea156d6c3cec0e946b09db285cb8a150177ecde8b0f824722cbd2dd1f9819af3b08b7b6e11ed0c019778fbce686b840d9
6
+ metadata.gz: 2d0ba1f3b315a8006361207336e6a9c9a766660d3635c21d3a43044b006b50d113c84c5bf591378a72f3f423a1e77db9c3b4bd262845fbfe51fcaa1fcd65c626
7
+ data.tar.gz: 7bb4fcebe188bc33c89e45d979bca5f0a3cd886a40d2d44ae53d28061f307aafbafc9d99eade6f4911dc51f8e777a3dd2d6bea257cca3ab9002e642c29ce5816
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- video_chat_get (0.1.1)
4
+ video_chat_get (0.1.2)
5
5
  httpclient (~> 2.8.3)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
data/README.md CHANGED
@@ -1,8 +1,18 @@
1
1
  # VideoChatGet
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/video_chat_get`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- obj=Youtubelive_analyze.new(videourl)
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
- ## Support sites
36
- |site_name |status |
37
- |:---|:---:|
38
- |mildom |◯ |
39
- |niconico | |
40
- |openrec |◯ |
41
- |twitcast | |
42
- |twitch | |
43
- |whowatch |◯ |
44
- |youtubelive |◯ |
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
- ## Development
84
+    ・log_path:string (default="./videoid.txt")
85
+     File path to write chat list.
48
86
 
49
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
@@ -1,3 +1,3 @@
1
1
  module VideoChatGet
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.1.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-10 00:00:00.000000000 Z
11
+ date: 2020-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler