Module: YtUtil::Channel::URL
- Defined in:
- lib/yt_util/channel/url.rb
Class Method Summary collapse
Class Method Details
.play_all(username) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/yt_util/channel/url.rb', line 4 def self.play_all(username) result = YtUtil::URL.request("https://www.youtube.com/user/#{username}") result = result.css('a.play-all-icon-btn').first return nil unless result result = try { result.attributes["href"].value } result ? "https://www.youtube.com".concat(result) : nil end |