#NEWLINE# def get_next_image_link( s ) : #NEWLINE# #INDENT# start_line = s . find ( 'rg_di' ) #NEWLINE# if ( start_line == ( - 1 ) ) : #NEWLINE# #INDENT# end_quote = 0 #NEWLINE# link = 'no_images' #NEWLINE# return ( link , end_quote ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# start_line = s . find ( '"class="rg_di"' ) #NEWLINE# start_content = s . find ( 'imgurl=' , ( start_line + 1 ) ) #NEWLINE# end_content = s . find ( '&amp;' , ( start_content + 1 ) ) #NEWLINE# content_raw = str ( s [ ( start_content + 7 ) : end_content ] ) #NEWLINE# return ( content_raw , end_content )