lisc.data.MetaData¶
- class lisc.data.MetaData[source]¶
An object to hold the meta data for data collection.
- Attributes
- datestr
The date that the data collection was run.
- requesterdict
Details of the requester object used for the data collection.
- db_infodict
Details of the database from which the data was accessed.
- settingsdict
Details of any search settings that were used during the collection.
- loglist or None
A log of requested URLs, if requests were logged.
Methods
__init__
()Initialize a MetaData object.
add_db_info
(db_info)Add database information to the MetaData object.
add_requester
(requester[, close])Add a requester to the MetaData object.
add_settings
(settings)Add search settings information to the MetaData object.
as_dict
()Get the attributes of the MetaData object as a dictionary.
from_dict
(meta_dict)Populate object from an input dictionary.
get_date
()Get the current data and attach to object.
- add_db_info(db_info)[source]¶
Add database information to the MetaData object.
- Parameters
- db_infodict
Information about the database from which the data was collected.
- add_requester(requester, close=True)[source]¶
Add a requester to the MetaData object.
- Parameters
- requesterRequester or dict
If Requester, the object used to launch URL requests. If dict, information from a requester object.
- closebool, optional, default: True
Whether to close the requester.
- add_settings(settings)[source]¶
Add search settings information to the MetaData object.
- Parameters
- settingsdict
Information about settings that were used during the data collection.
Examples using lisc.data.MetaData
¶
Tutorial 05: Collecting Citation Data