Sha256: dca4b2c458e46ae912ab60df4df6e6b564168bf438ec8515755fb1f023d3339f

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

require 'video_chat_get/version'
require 'site_list/video_analyze'
require 'site_list/openrec_analyze'
require 'site_list/mildom_analyze'
require 'site_list/whowatch_analyze'
require 'site_list/youtubelive_analyze'

   """
    ・argument
    @@OPENREC_IDENTFIER:
    @@MILDOM_IDENTFIER:
    @@WHOWATCH_IDENTFIER:
    @@YOUTUBELIVE_IDENTFIER:

   ・method
    url_route():
    """

module VideoChatGet

  @@OPENREC_IDENTFIER="https://www.openrec.tv/live/"
  @@MILDOM_IDENTFIER="https://www.mildom.com/playback/"
  @@WHOWATCH_IDENTFIER="https://whowatch.tv/archives/"
  @@YOUTUBELIVE_IDENTFIER="https://www.youtube.com/watch?"

  def self.test
    "hello"
  end

  def self.url_route(url)

    if url.include?(@@OPENREC_IDENTFIER) then
        puts "identifier:openrec videourl:#{url}"
        obj=Openrec_analyze.new(url)
        obj.chat_scrape
    elsif url.include?(@@MILDOM_IDENTFIER) then
        puts "identifier:mildom videourl:#{url}"
        obj=Mildom_analyze.new(url)
        obj.chat_scrape
    elsif url.include?(@@WHOWATCH_IDENTFIER) then
        puts "identifier:whowatch videourl:#{url}"
        obj=Whowatch_analyze.new(url)
        obj.chat_scrape
    elsif url.include?(@@YOUTUBELIVE_IDENTFIER) then
        puts "identifier:youtube videourl:#{url}"
        obj=Youtubelive_analyze.new(url)
        obj.chat_scrape
    else
        puts "urlerr"
    end

    "end"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
video_chat_get-0.1.3 lib/video_chat_get.rb
video_chat_get-0.1.2 lib/video_chat_get.rb
video_chat_get-0.1.1 lib/video_chat_get.rb
video_chat_get-0.1.0 lib/video_chat_get.rb