def list_recent_datasets(lcc_server, nrecent=<NUM_LIT>):
urlparams = {'<STR_LIT>':nrecent}<EOL>urlqs = urlencode(urlparams)<EOL>url = '<STR_LIT>' % (lcc_server, urlqs)<EOL>try:<EOL><INDENT>LOGINFO(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (<EOL>lcc_server,<EOL>)<EOL>)<EOL>have_apikey, apikey, expires = check_existing_apikey(lcc_server)<EOL>if not have_apikey:<EOL><INDENT>apikey, expires = get_new_apikey(lcc_server)<EOL><DEDENT>if apikey:<EOL><INDENT>headers = {'<STR_LIT>':'<STR_LIT>' % apikey}<EOL><DEDENT>else:<EOL><INDENT>headers = {}<EOL><DEDENT>req = Request(url, data=None, headers=headers)<EOL>resp = urlopen(req)<EOL>recent_datasets = json.loads(resp.read())['<STR_LIT:result>']<EOL>return recent_datasets<EOL><DEDENT>except HTTPError as e:<EOL><INDENT>LOGERROR('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(url, e.code, e.reason))<EOL>return None<EOL><DEDENT>
This lists recent publicly visible datasets available on the LCC-Server.

    If you have an LCC-Server API key present in `~/.astrobase/lccs/` that is
    associated with an LCC-Server user account, datasets that belong to this
    user will be returned as well, even if they are not visible to the public.

    Parameters
    ----------

    lcc_server : str
        This is the base URL of the LCC-Server to talk to.

    nrecent : int
        This indicates how many recent public datasets you want to list. This is
        always capped at 1000.

    Returns
    -------

    list of dicts
        Returns a list of dicts, with each dict containing info on each dataset.