#NEWLINE# def kuwo_download_by_rid( rid , output_dir = '.' , merge = True , info_only = False ) : #NEWLINE# #INDENT# html = get_content ( ( 'http://player.kuwo.cn/webmusic/st/getNewMuiseByRid?rid=MUSIC_%s' % rid ) ) #NEWLINE# title = match1 ( html , '<name>(.*)</name>' ) #NEWLINE# url = get_content ( ( 'http://antiserver.kuwo.cn/anti.s?format=mp3&rid=MUSIC_%s&type=convert_url&response=url' % rid ) ) #NEWLINE# ( songtype , ext , size ) = url_info ( url ) #NEWLINE# print_info ( site_info , title , songtype , size ) #NEWLINE# if ( not info_only ) : #NEWLINE# #INDENT# download_urls ( [ url ] , title , ext , size , output_dir )