get_mofdb_data

data.get_mofdb_data(session, url, params, headers, npages, limit=1000)

Compile a asyncio Future containing the results of a search by making requests to MOFDb in parallel asynchronously

Parameters

Name Type Description Default
session aiohttp.ClientSession object of the ClientSession required
url (str, optional) URL of the website. Designed for MOFDb, so may not work with other URLs, defaults to ‘https://mof.tech.northwestern.edu/mofs/#.json’ required
headers (dict, optional) dictionary of search parameters, defaults to {‘loading’: ‘cm3(STP)/cm3’, ‘pressure’: ‘bar’} required
params (dict, optional) dictionary of the headers to be output in the result, defaults to {‘vf_min’: 0.75, ‘vf_max’: 1, ‘database’:‘COREMOF 2019’,‘page’:1} required
npages (int, optional) number of the result pages to be output, defaults to 1 required
limit (int, optional) semaphore limit of number of jobs per block, no need to change this, defaults to 1000 1000

Returns

Name Type Description
asyncio.Future an instance of asyncio.Future that contains all the search results