Skip to main content

archminer

PyPI - Version PyPI - Python Version


archminer is a command-line tool that extracts text from a specific PDF, referred to as 'Marginados'. The text in the Marginados PDF was created through OCR, as the PDF is a scan. This tool tries to extract the text in reading order.

The tool makes assumptions specific to the Marginados PDF:

  • only certain pages are relevant
  • the text is layed out in two columns
  • each (relevant) page has a header line and a page number in the footer line

Table of Contents

Installation

pip install archminer

Usage

As mentioned above, this tool has expectations about the input PDF.

It is expected that you use it like this:

archminer --from-page 6 --to-page 590 Marginados_all.pdf top-bottom remove-top-bottom

This reads pages 6 through 590 from the PDF, determines the coordinates of the top (header) and bottom (footer) lines, then removes those lines and writes the text contents of the pages in reading order to Marginados_all.txt (because we did not specify an output file).

See archminer --help for the full usage.

License

archminer is distributed under the terms of the GPLv3 license or any later version.

Metadata

Release files for archminer 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archminer 1.1.0
File Size Uploaded Provenance
archminer-1.1.0.tar.gz 15.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for archminer 1.1.0
File Interpreter ABI Platform
archminer-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.8 kB

Release files / archminer-1.1.0.tar.gz

Download URL archminer-1.1.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a98fb91cf2f0b18de550933233d842c307fe492c5b07afacc45a4d281185c2c
BLAKE2b-256 checksum
How to use checksums
18310306344131f0da5073dfd40c3be29e7401e6984f6680007dc7685414d19b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.0

Release files / archminer-1.1.0-py3-none-any.whl

Download URL archminer-1.1.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2460c6331f60bc2acc5edce2ef1c448be4d52e6fd2073ac7df16a1a9c040413
BLAKE2b-256 checksum
How to use checksums
d902ed2543fc39e4a846e667d6c5e782cbaa40f31a979050894c93aca40d7f00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.0

Security for archminer 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page