# oarepo\_oaipmh\_harvester.oai\_harvester.results

## `oarepo_oaipmh_harvester.oai_harvester.results`

Results for the oai\_harvesters service.

### `OAIHarvesterItem`

Bases: `RecordItem`

Single OAI-PMH harvester result.

#### `id: str`

ID of the harvester.

#### `links: dict[str, str]`

Get links for this result item.

#### `data: dict[str, Any]`

Serialized harvester, dumped on first access.

#### `errors: list[Any] | None`

Get the errors.

#### `__init__(service: OAIHarvesterService, identity: Identity, oai_harvester: OAIHarvesterAggregate, errors: list[Any] | None = None, links_tpl: LinksTemplate | None = None, schema: ServiceSchemaWrapper | None = None, **_kwargs: Any)`

Create OAIHarvesterItem.

#### `__getitem__(key: str) -> Any`

Get a field from the serialized harvester data.

#### `to_dict() -> dict[str, Any]`

Serialize the harvester result, including errors.

### `OAIHarvesterList`

Bases: `RecordList`

List of OAI-PMH harvester results.

#### `hits: Iterator[dict[str, Any]]`

Iterator over the hits.

#### `to_dict() -> dict`

Return result as a dictionary.
