#NEWLINE# def parse_script( self , response ) : #NEWLINE# #INDENT# x = HtmlXPathSelector ( response ) #NEWLINE# script = Script ( ) #NEWLINE# script [ 'url' ] = response . url #NEWLINE# script [ 'episode_name' ] = '' . join ( x . select ( '//h3/text()' ) . extract ( ) ) #NEWLINE# script [ 'script' ] = '\n' . join ( x . select ( "//div[@class='episode_script']/text()" ) . extract ( ) ) #NEWLINE# return script