#NEWLINE# def _setOpener( self ) : #NEWLINE# #INDENT# request = Request ( self . _url ) #NEWLINE# request . add_header ( 'Accept-Language' , 'en-US,en;q=0.5' ) #NEWLINE# request . add_header ( 'Connection' , 'keep-alive' ) #NEWLINE# request . add_header ( 'Referer' , self . _ref ) #NEWLINE# if ( self . _cookie is not None ) : #NEWLINE# #INDENT# request . add_header ( 'Cookie' , self . _cookie ) #NEWLINE# #UNINDENT# request . add_header ( 'User-Agent' , 'Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0' ) #NEWLINE# self . _request = request