#NEWLINE# def get_raw_url( gist_url ) : #NEWLINE# #INDENT# html = requests . get ( gist_url ) . text #NEWLINE# prefix = '<div class="file-actions">\n\n          <a href="' #NEWLINE# postfix = '" class="btn btn-sm ">Raw</a>' #NEWLINE# urls = parse_text_from_html ( html , prefix , postfix ) #NEWLINE# urls = [ ( 'https://gist.githubusercontent.com' + url ) for url in urls ] #NEWLINE# return ( urls [ 0 ] if urls else None )