-
Notifications
You must be signed in to change notification settings - Fork 2
GeomaterialDictRetriever
CorylC edited this page May 2, 2024
·
2 revisions
The GeomaterialDictRetriever
class in the openmindat
package is designed for querying Geomaterial data from the Mindat API.
Create an instance of the GeomaterialDictRetriever
class and use its methods to retrieve data.
from openmindat import GeomaterialDictRetriever
Gdr = GeomaterialDictRetriever()
Gdr.saveto("/path/to/directory", "geoDict")
Executes the query and saves the results to a specified directory.
-
OUTDIR
(str): Directory path. -
FILE_NAME
(str): file name. - Returns: None
Executes the query and saves the results to the current directory.
-
FILE_NAME
(str): file name - Returns: None
Executes the query and saves the results to an object.
- Returns: Dictionary
For more details, please refer to the Mindat API documentation.