This is a ruby package that gets a list of chats from the broadcasts of video distribution sites.
site_name | status |
---|---|
mildom | ◯ |
niconico | |
openrec | ◯ |
twitcasting | ◯ |
twitch | |
whowatch | ◯ |
youtubelive | ◯ |
Add this line to your application's Gemfile:
gem 'video_chat_get'
And then execute:
$ bundle
Or install it yourself as:
$ gem install video_chat_get
use CLI:
$ videochatget videourl
require 'video_chat_get'
#mildom
obj=Mildom_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()
#openrec
obj=Openrec_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()
#twitcasting
obj=Twitcasting_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()
#whowatch
obj=Whowatch_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()
#youtubelive
obj=Youtubelive_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()
Basically use instance method
↓ Example of use
obj=Youtubelive_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()
@videoinfo
・Returns: hash
We can acquire broadcast frame information.
Parameters:
・log_flag:boolean (default=true)
Whether to write chat list to file, write when true.
・log_path:string (default="./videoid.txt")
File path to write chat list.
Returns:
・chat_list:array
Chat data list. Chat information is stored as dictionary data,
and this dictionary data exists for the number of chats.
chat_list=[hash,hash,...]
Bug reports and pull requests are welcome on GitHub at https://github.com/tf0101/VideoChatGet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the VideoChatGet project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.