Skip to content

yeeli/getvideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getvideo

getvideo is parse video information on Ruby, you can get video media download url, cover, flash url and title.

网站支持列表

安装

在你的程序中的Gemfile中添加下列:

gem 'getvideo'

并执行:

$ bundle

或者通过gem直接安装

$ gem install getvideo        

使用

请确认 faraday, multi_json, nokogiri等Gems是否已经安装

	require 'getvideo'
	
	video = Getvideo.parse "http://videourl.com/info"
	video.cover # 视频网站提供的截图或封面
	video.id #视频的ID,用来在视频网站查询视频
	video.html_url #视频的源url
	video.title #视频的标题
	video.media #获取视频内容 {"mp4" => "http://mp4 play url", "hlv" => "http://hlv"}
	video.flash #视频flash格式
	video.play_media  #已获取视频内容,选取一条作为播放内容
	video.json #以json格式显示

Thanks

get more video you can access you-get

About

parse video information on Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages