#NEWLINE# def bootstrap_noembed( cache = None , registry = None , **params ) : #NEWLINE# #INDENT# endpoint = 'http://noembed.com/embed' #NEWLINE# schema_url = 'http://noembed.com/providers' #NEWLINE# pr = ( registry or ProviderRegistry ( pr ) ) #NEWLINE# contents = fetch ( schema_url ) #NEWLINE# json_data = json . loads ( contents ) #NEWLINE# for provider_meta in json_data : #NEWLINE# #INDENT# for regex in provider_meta [ 'patterns' ] : #NEWLINE# #INDENT# pr . register ( regex , Provider ( endpoint , ** params ) ) #NEWLINE# #UNINDENT# #UNINDENT# return pr