Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Str attr TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad If CompareNotEq Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A re N/A urllib2 N/A urllib N/A lxml.html N/A requests flask current_app app shiva.lyrics LyricScraper shiva.utils get_logger N/A log N/A get_logger MetroLyrics N/A LyricScraper N/A N/A __init__ N/A N/A self artist title N/A N/A N/A N/A self artist artist N/A N/A self title title N/A N/A self search_url http://www.metrolyrics.com/api/v1/search/artistsong N/A N/A self title_re N/A N/A re compile <title>(?P<artist>.*?) - (?P<title>.*?) LYRICS</title> N/A N/A self lyrics None N/A N/A self source None N/A fetch N/A N/A self N/A N/A N/A N/A N/A self search N/A N/A N/A self source N/A N/A None N/A response N/A N/A requests get N/A self source N/A N/A self html N/A response text N/A html N/A N/A N/A lxml html fromstring N/A self html N/A N/A N/A N/A self check N/A N/A False N/A N/A N/A log info N/A [FOUND] %s N/A self source N/A div N/A N/A html get_element_by_id lyrics-body N/A lyrics N/A N/A re sub \n\[ From: .*? \] N/A N/A div text_content N/A N/A self lyrics N/A N/A lyrics strip N/A True N/A search N/A N/A self N/A N/A N/A params N/A artist song X-API-KEY N/A self artist N/A self title N/A N/A app config N/A METROLYRICS_API_KEY N/A _url N/A N/A ? join N/A N/A self search_url N/A N/A urllib urlencode params N/A N/A N/A log info N/A [SEARCH] %s _url N/A response N/A N/A requests get _url N/A N/A N/A response status_code 200 N/A N/A N/A self source N/A N/A N/A N/A N/A response json N/A items N/A 0 N/A url N/A check N/A N/A self N/A N/A N/A match N/A N/A N/A self title_re search N/A self html N/A N/A N/A N/A N/A N/A match group artist lower N/A N/A N/A self artist lower N/A N/A False N/A N/A N/A N/A N/A N/A match group title lower N/A N/A N/A self title lower N/A N/A False N/A True N/A N/A