Skip to main content

Add your description here

Project description

Polona Explorer

Polona Explorer is a Python project designed for analyzing historical Polish periodicals, specifically focusing on the concept of oil in Polish press from 1853-1918.

Dataset

This project is associated with the dataset "Petroleum and Press -- The Concept of Oil in Polish Periodical Press, 1853--1918" published on Zenodo.

About the Dataset

The dataset consists of Polish-language periodicals that mention petroleum published between 1 January 1853 and 31 December 1918. The periodicals were downloaded together with their metadata from the Polona aggregator in May 2023 in PDF format, based on a keyword search. These PDF files contained OCR'd digital images of physical documents held in archives and libraries and are all in the public domain.

The dataset was processed to create articles specifically pertaining to petroleum by running layout recognition and segmentation, OCR, and formatting the dataset to METS/MODS.

Access the Dataset

The full dataset contains ~17,000 zipped newspapers in METS/MODS format with a total file size of approximately 480 GB. A random sample of 75 zipped Polish weekly newspapers in public domain is also available.

Dataset Features

  • Time Range: 1853-1918
  • Language: Polish
  • Format: METS/MODS with OCR
  • Processing Tools: OCR-D and Eynollah
  • Source: Polona aggregator

Project Structure

polonaexplorer/
├── src/                 # Source code
├── tests/               # Test files
├── example/             # Example usage
├── docs/                # Documentation
├── README.md            # This file
└── pyproject.toml       # Project configuration

Installation

Install the package in development mode:

pip install -e .

Usage

See the example directory for usage examples.

Basic usage example:

from polonaexplorer.explorer import PolonaExplorer

# Initialize explorer with target words
explorer = PolonaExplorer(
    targetwords=["petrol", "oil"],
    data_path="/path/to/polona/corpus",
    out_path="/path/to/output"
)

# Search for words and extract text
explorer.get_file_stats()
result_path = explorer.generate_dataframe()

Development

For development setup:

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run coverage
coverage run -m pytest
coverage report

Documentation

Documentation is built using Sphinx:

# Install documentation dependencies
pip install -e ".[docs]"

# Build documentation
make -C docs html

License

This project is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use this dataset or code in your research, please cite:

Kaye, A., & Vogl, M. (2026). Petroleum and Press -- The Concept of Oil in Polish Periodical Press, 1853--1918 [Data set]. Zenodo. https://doi.org/10.5281/zenodo.18591713

Authors

  • Malte Vogl (Max Planck Institute of Geoanthropology)
  • Aleksandra Kaye (Max Planck Institute of Geoanthropology, Independent Researcher)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polonaexplorer-0.2.6.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polonaexplorer-0.2.6-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file polonaexplorer-0.2.6.tar.gz.

File metadata

  • Download URL: polonaexplorer-0.2.6.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for polonaexplorer-0.2.6.tar.gz
Algorithm Hash digest
SHA256 438a983301093f6af8800aadd60129d97e6e47b63a45f87c7007940ece4f90d6
MD5 bd4fb5d81098129997d16a9ee0597eff
BLAKE2b-256 b895fa164003ea8889f92d5014da0c92edbe2ad5ee7b8914935d5ebdd7380d79

See more details on using hashes here.

File details

Details for the file polonaexplorer-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: polonaexplorer-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for polonaexplorer-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e0fd002683969436bdfd0c44b726a4652fbe77951b0b6810ef2c5384acecf537
MD5 1aac3f1fa1f5d9e75dc0ffc02db28ff5
BLAKE2b-256 6517eb3adeb12efff9b230f914e4dc2213e476228f76a0f049fd8bd8fe0479db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page