Dear community members，I want to know how to download a large number of CIF files at once using mp-api, I already have their ids
I think I can use the parallel download method, but I’m worried that this is not a good method because it does not help to reduce the load on the server.
Hi @Stephen_liao, the
mp-api client already parallelizes your requests in the best way possible for our servers. Please follow the guidance at Tips for Large Downloads - Materials Project Documentation.
Hi, may I know what is the function to access/download a material’s CIF, given id?
@Yuhao use the
mp-api client to retrieve the structure you need and feed it into
pymatgen.CifWriter to save it as a CIF file. Refer to the
pymatgen docs for more info.