Sha256: b8f612d7ca2cc4d3acc43e3dbbf773ddbc624852c7e7fdf2c0fb14e1a61e4129
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
require 'open-uri' require 'nokogiri' module LyricFind class API def get_snippet_by_song_name artist, song_name doc = get_search_api_response artist, song_name return nil if doc.nil? return doc.xpath('//snippet')[0].content.gsub("\r\n",'').strip end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
LyricFind-0.1.5 | lib/lyricfind/get_snippet_by_song_name.rb |