video_chat_get 0.3.6.8 → 0.3.6.9

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: fc9d6fc28677944005107fb395f165cd69c11543833ed7f9525139eeb66928e5
4
- data.tar.gz: 28e035262b27e6a6db142e8d9787e43316bf3e9eacb10f7496135a5c1abed73c
3
+ metadata.gz: 8e8b7b496420ff0e0f7759bc0e890bc401c07d221a5bb9eeb6224dcf9f0c7412
4
+ data.tar.gz: 3722c24c88213aa92c1a93137191228fc441dc2815207c406a9000008e0f2740
5
5
  SHA512:
6
- metadata.gz: 7da6bb45633139e77fbfc0d21d8b1306448491c0d33a41a7f806a17ba98654d8ed849e5a6009d1195bfeff2f91103007b315cc022338d47ed7db178ed1a08e79
7
- data.tar.gz: bde6fe0aa041f4e457f4cefd6f71c22aa49a623a86c7f18925ec56fa6d4dacd3ec7d95ce1a5d02cefc1358e9dfffb2010aba4a849a245c68aa8b5730ca6b5d2e
6
+ metadata.gz: 8438b737d033dc41d9b9940608e674c0eef47a56b7bf2d1bb3e612ad40fcc2a5bf8b2527edf06daa657357dbc48ee52ce23b238340d0204facf237f76092a019
7
+ data.tar.gz: 4955e2f45237d9deff2f7ca509f1094bc78bae74421dda9250350a49e5d205ae5f53d655b6db5aefd6798bf2870c8ceff934889dbfc37a67ddedfa8aeae1f150
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- video_chat_get (0.3.6.8)
4
+ video_chat_get (0.3.6.9)
5
5
  httpclient (~> 2.8.3)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
@@ -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
- next_url=@CHAT_REQUEST_URL + @videoinfo_body["contents"]["twoColumnWatchNextResults"]["conversationBar"]["liveChatRenderer"]["continuations"][0]["reloadContinuationData"]["continuation"]
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)
@@ -1,3 +1,3 @@
1
1
  module VideoChatGet
2
- VERSION = "0.3.6.8"
2
+ VERSION = "0.3.6.9"
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.3.6.8
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 00:00:00.000000000 Z
11
+ date: 2024-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler