download_text
Download OCR plain text from ANNO newspaper issues. Specify an identifier and optionally a page to retrieve cached text locally.
Instructions
Download OCR plain text for an ANNO newspaper issue and cache it locally.
Args: identifier: Document id, e.g. "ANNO_dmo19330626" page: Single page to fetch. Omit for the whole issue.
Returns: Path to the cached text file (as string)
IMPORTANT:
ANNO serves text one page at a time, so a whole issue costs one request
per page — a 104-page issue is 104 paced requests. Pass page whenever
get_snippets has already told you which page you want.
Periodicals (identifiers starting ANNOP_) have no text endpoint at all
and will raise. Use get_snippets for those.Example: path = download_text("ANNO_dmo19330626", page=7)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| identifier | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |