Project

yt_util

0.0
No commit activity in last 3 years
No release in over 3 years
A toolbox for Youtube.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.0

Runtime

 Project Readme

Youtube Utility

Gem Version Build Status Coverage Status

General purpose toolbox for working with Youtube.

Installation

Add this line to your application's Gemfile:

gem 'yt_util'

Usage

Usage notes will come in time. Feel free to look at the source code as it's rather short.

Methods available:

YtUtil::Scrape.raw_query(search, filters = "")
YtUtil::Scrape.query(search = nil, filters = "", &qry)
YtUtil::Scrape.raw_video_stats(video_code)
YtUtil::Scrape.video_stats(video_code = nil, &qry)
YtUtil::Scrape.raw_user_stats(username)
YtUtil::Scrape.user_stats(username = nil, &qry)
YtUtil::URL.generate(video_code, options = {})
YtUtil::URL.request(web_request)
YtUtil::GooglePlus.get_username(youtube_username)
YtUtil::Channel::URL.play_all(username)

NOTE

Any scraping results may become unavailable at anytime if Youtube chooses to change their page layout. This library is designed to return nil for any data it fails to scrape.

Contribute

This project will become more and more complete over time. Eventually the mapping of scraped data will be implemented intelligently instead of statically. This way when Youtube changes their site the code will compensate for the change. Feel free to contribute with this in mind.

LICENSE

Copyright (c) 2014 Daniel P. Clark

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.