#NEWLINE# def _get_relevant_record_with_doi( self , doi ) : #NEWLINE# #INDENT# random_string = '' . join ( random . sample ( string . letters , 10 ) ) #NEWLINE# doi = doi . replace ( '(' , '{(}' ) #NEWLINE# doi = doi . replace ( ')' , '{)}' ) #NEWLINE# url_template = ( ( ( 'https://api.elsevier.com/content/search/index:SCOPUS?query=DOI({doi})&field=citedby-count&apiKey=' + os . environ [ 'SCOPUS_KEY' ] ) + '&insttoken=' ) + os . environ [ 'SCOPUS_INSTTOKEN' ] ) #NEWLINE# url = url_template . format ( doi = doi ) #NEWLINE# page = self . _get_scopus_page ( url ) #NEWLINE# if ( not relevant_records ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# relevant_records = self . _extract_relevant_records ( page , id ) #NEWLINE# return relevant_records