#NEWLINE# def ifeng_download( url , merge = True ) : #NEWLINE# #INDENT# id = r1 ( '/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\.shtml$' , url ) #NEWLINE# if id : #NEWLINE# #INDENT# return ifeng_download_by_id ( id ) #NEWLINE# #UNINDENT# html = get_html ( url ) #NEWLINE# id = r1 ( 'var vid="([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})"' , url ) #NEWLINE# assert id , "can't find video info" #NEWLINE# return ifeng_download_by_id ( id )