#NEWLINE# def facebook_download( url , output_dir = '.' , merge = True , info_only = False , **kwargs ) : #NEWLINE# #INDENT# html = get_html ( s2 ) #NEWLINE# title = r1 ( '<title id="pageTitle">(.+) \\| Facebook</title>' , html ) #NEWLINE# s2 = parse . unquote ( unicodize ( r1 ( '\\["params","([^"]*)"\\]' , html ) ) ) #NEWLINE# data = json . loads ( s2 ) #NEWLINE# video_data = data [ 'video_data' ] [ 'progressive' ] #NEWLINE# for fmt in [ 'hd_src' , 'sd_src' ] : #NEWLINE# #INDENT# src = video_data [ 0 ] [ fmt ] #NEWLINE# if src : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# ( type , ext , size ) = url_info ( src , True ) #NEWLINE# print_info ( site_info , title , type , size ) #NEWLINE# if ( not info_only ) : #NEWLINE# #INDENT# download_urls ( [ src ] , title , ext , size , output_dir , merge = merge )