Method: YouTubeIt::Parser::SubscriptionFeedParser#parse_content
- Defined in:
- lib/youtube_it/parser.rb
#parse_content(content) ⇒ Object
351 352 353 354 355 356 357 358 359 360 |
# File 'lib/youtube_it/parser.rb', line 351 def parse_content(content) doc = Nokogiri::XML(content.body) feed = doc.at("feed") subscriptions = [] feed.css("entry").each do |entry| subscriptions << parse_entry(entry) end return subscriptions end |