0.0
The project is in a healthy, maintained state
videochat scraping
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.0
~> 1.16
~> 3.0

Runtime

~> 2.8.3
~> 2.3.0
~> 1.10.9
 Project Readme

VideoChatGet

This is a ruby ​​package that gets a list of chats from the broadcasts of video distribution sites.

Support sites

site_name status
mildom
niconico
openrec
twitcasting
twitch
whowatch
youtubelive

Installation

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

Usage

CLI

use CLI:

$ videochatget videourl

In code

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()

Document

Basically use instance method

↓ Example of use

obj=Youtubelive_analyze.new(url)
video_info=obj.videoinfo
chat_list=obj.chat_scrape()

instance variable

@videoinfo

・Returns: hash
   We can acquire broadcast frame information.

instance method

#chat_scrape(log_flag=true,log_path="./videoid.txt")

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,...]

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the VideoChatGet project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.