-
Notifications
You must be signed in to change notification settings - Fork 2
PhotoCountRetriever
CorylC edited this page May 14, 2024
·
1 revision
The PhotoCountRetriever
class in the openmindat
package is designed for querying photocount by class.
Create an instance of the PhotoCountRetriever
class and use its methods to retrieve data.
from openmindat import PhotoCountRetriever
pcr = PhotoCountRetriever()
photos = pcr.get_dict()
Determines how many results will be read per page.
-
PAGE_SIZE
(int): the amount of results per page - Returns: self
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.