Class: FollowersNumber::Parsers::Youtube

Inherits:
Object
  • Object
show all
Defined in:
lib/followers_number/parsers/youtube.rb

Class Method Summary collapse

Class Method Details

.parse(html) ⇒ Object



4
5
6
# File 'lib/followers_number/parsers/youtube.rb', line 4

def self.parse(html)
  html.css("span.subscribed").text.split("\xC2\xA0").join.to_i
end