#NEWLINE# def esearch( self , db , term , retstart , retmax , rettype ) : #NEWLINE# #INDENT# url = ( self . base + 'esearch.fcgi' ) #NEWLINE# self . logger . debug ( ( 'url: %s' % url ) ) #NEWLINE# values = { #NEWLINE# #INDENT# 'db' : db , #NEWLINE# 'term' : term , #NEWLINE# 'rettype' : rettype , #NEWLINE# 'retstart' : retstart , #NEWLINE# 'retmax' : retmax , #NEWLINE# #UNINDENT# } #NEWLINE# data = urllib . urlencode ( url ) #NEWLINE# self . logger . debug ( ( 'data: %s' % str ( data ) ) ) #NEWLINE# req = urllib2 . Request ( url , data ) #NEWLINE# response = urllib2 . urlopen ( req ) #NEWLINE# querylog = response . readlines ( ) #NEWLINE# time . sleep ( 1 ) #NEWLINE# return querylog