def obtain_licenses():
with db_connect() as db_conn:<EOL><INDENT>with db_conn.cursor() as cursor:<EOL><INDENT>cursor.execute("""<STR_LIT>""")<EOL>licenses = {r[<NUM_LIT:0>]: r[<NUM_LIT:1>] for r in cursor.fetchall()}<EOL><DEDENT><DEDENT>return licenses<EOL>
Obtain the licenses in a dictionary form, keyed by url.