video_chat_get 0.3.6.1 → 0.3.6.3

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: 2db675f7f4c048c3fec85707ed1ef9c0d894199755d0c3099502f8cae30a8b3f
4
- data.tar.gz: 92a636edae135b5defd397dff3b62c352100066a758f0cdc1dacacd199d8e74d
3
+ metadata.gz: 195b68bafdd9bcd0d5a07c27843452963369be19fcc62770d1a0ece40d3256b0
4
+ data.tar.gz: c4e802d7201354f564fca6911dbacdaa68709b780d100fba6b9660586ef43d11
5
5
  SHA512:
6
- metadata.gz: 1455b3b18b9aa7edafffcb8c543b9c84c853d88f85c936e5d39695681389f325f0c8cbd086293c5edefb10a92825c5ff3e557f644469ad9e83eeaa99e28f8ca1
7
- data.tar.gz: 6e69bb0b6c988f6dc5400398b89806c6b3ba08f00ea241b9ca6d5865826675000d00015129d104f7d697328d95bb75a5ababaf7e335dabd377d13d2d52db3ab7
6
+ metadata.gz: 78097f5b892e961b7c42c2e9e6688935dadd6ea1f25903f9ec660b1cdc76bec7aa74535ad26d64a040ca6017a0a93b72ca2cbaa4ca270c2a4503d46870a0bd8f
7
+ data.tar.gz: 6dcd715cdbad6a1f6a7f211d15b7164effb045a0beaea5c9ad83d93254ede49cc79369062605ae6d98730bb20a89ce8480668bb5f7758916c995280876e66968
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- video_chat_get (0.3.6.1)
4
+ video_chat_get (0.3.6.3)
5
5
  httpclient (~> 2.8.3)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
@@ -50,13 +50,17 @@ class Youtubelive_analyze<Video_analyze
50
50
  def videoinfo_extraction()
51
51
 
52
52
  videoinfo={}
53
- common_hash=@videoinfo_body["contents"]["twoColumnWatchNextResults"]["results"]["results"]["contents"]
53
+ common_hash = @videoinfo_body.dig("contents", "twoColumnWatchNextResults", "results" , "results", "contents")
54
+ if common_hash == nil then
55
+ return videoinfo
56
+ end
54
57
 
55
- videoinfo["ch"]=common_hash[1]["videoSecondaryInfoRenderer"]["owner"]["videoOwnerRenderer"]["title"]["runs"][0]["text"]
56
- videoinfo["title"]=common_hash[0]["videoPrimaryInfoRenderer"]["title"]["runs"][0]["text"]
57
- videoinfo["starttime"]=common_hash[0]["videoPrimaryInfoRenderer"]["dateText"]["simpleText"]
58
- videoinfo["videocount"]=common_hash[0]["videoPrimaryInfoRenderer"]["viewCount"]["videoViewCountRenderer"]["viewCount"]["simpleText"]
59
- videoinfo["good"]=common_hash[0]["videoPrimaryInfoRenderer"]["videoActions"]["menuRenderer"]["topLevelButtons"][0]["segmentedLikeDislikeButtonRenderer"]["likeButton"]["toggleButtonRenderer"]["defaultText"]["simpleText"]
58
+ videoinfo["ch"]=common_hash.dig(1, "videoSecondaryInfoRenderer", "owner", "videoOwnerRenderer", "title", "runs", 0, "text")
59
+ videoinfo["chid"]=common_hash.dig(1, "videoSecondaryInfoRenderer", "owner", "videoOwnerRenderer", "title", "runs", 0, "navigationEndpoint", "browseEndpoint", "browseId")
60
+ videoinfo["title"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "title", "runs", 0, "text")
61
+ videoinfo["starttime"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "dateText", "simpleText")
62
+ videoinfo["videocount"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "viewCount", "videoViewCountRenderer", "viewCount", "simpleText")
63
+ videoinfo["good"]=common_hash.dig(0, "videoPrimaryInfoRenderer", "videoActions", "menuRenderer", "topLevelButtons", 0, "segmentedLikeDislikeButtonViewModel", "likeButtonViewModel", "likeButtonViewModel", "toggleButtonViewModel", "toggleButtonViewModel", "defaultButtonViewModel", "buttonViewModel", "title")
60
64
  return videoinfo
61
65
  end
62
66
 
@@ -1,3 +1,3 @@
1
1
  module VideoChatGet
2
- VERSION = "0.3.6.1"
2
+ VERSION = "0.3.6.3"
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.1
4
+ version: 0.3.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tf0101
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-06 00:00:00.000000000 Z
11
+ date: 2024-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,7 +134,7 @@ homepage: https://github.com/tf0101/VideoChatGet
134
134
  licenses:
135
135
  - MIT
136
136
  metadata: {}
137
- post_install_message:
137
+ post_install_message:
138
138
  rdoc_options: []
139
139
  require_paths:
140
140
  - lib
@@ -149,8 +149,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.0.3
153
- signing_key:
152
+ rubyforge_project:
153
+ rubygems_version: 2.7.6.2
154
+ signing_key:
154
155
  specification_version: 4
155
156
  summary: videochat scraping package
156
157
  test_files: []