def process_url(url, key):
logger.debug('<STR_LIT>', url)<EOL>if key is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>response = requests.get(url, headers={"<STR_LIT>": "<STR_LIT>" + key})<EOL>doecode_json = response.json()<EOL>for record in doecode_json['<STR_LIT>']:<EOL><INDENT>yield record<EOL><DEDENT>
Yields DOE CODE records from a DOE CODE .json URL response
Converts a DOE CODE API .json URL response into DOE CODE projects