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.

__init__()[source]

Initialize a MetaData object.

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.

as_dict()[source]

Get the attributes of the MetaData object as a dictionary.

from_dict(meta_dict)[source]

Populate object from an input dictionary.

Parameters:
meta_dictdict

Dictionary of information to add to the object.

get_date()[source]

Get the current data and attach to object.

Examples using lisc.data.MetaData

Counts with Functions

Counts with Functions

Words with Functions

Words with Functions

Tutorial 08: Collecting Citation Data

Tutorial 08: Collecting Citation Data