Skip to main content

MercuPy Parser

Python wrapper for mercury-parser

Installation

docker-compose.yml contains the configuration to run mercury-parser with nginx.

docker-compose up -d --scale mercury-parser=n

where n is the number of instances of mercury-parser

Then you can access the service at http://localhost:4000.

pip install mercupy-parser

Usage

from mercupy_parser import Mercupy

# api_endpoint = "http://localhost:4000/parser"
mercupy = Mercupy(api_endpoint=api_endpoint, verbose=True)

# parse single url
responses = mercupy.parser(url, headers=headers, content_type=content_type)

# parse multiple urls
responses = mercupy.parser(urls, headers=headers, content_type=content_type)

print(responses[0].json())

Metadata

Release files for mercupy-parser 0.2.1

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

Source distribution (sdist)

Source distribution for mercupy-parser 0.2.1
File Size Uploaded Provenance Actions
mercupy_parser-0.2.1.tar.gz 14.6 kB Without provenance Details for mercupy_parser-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mercupy-parser 0.2.1
File Interpreter ABI Platform Actions
mercupy_parser-0.2.1-py3-none-any.whl Python 3 none any Details for mercupy_parser-0.2.1-py3-none-any.whl

Total release size: 29.5 kB

Release files / mercupy_parser-0.2.1.tar.gz

Download URL mercupy_parser-0.2.1.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fdac7fd29d8b97f55a44b71fc80995ce1a484a2268d56952a4e3471a73928364
BLAKE2b-256 checksum
How to use checksums
8d3e4243a2faf6c330ba8b4e334e8472e6cb0aa8d57e1e5705d201704e9cc791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / mercupy_parser-0.2.1-py3-none-any.whl

Download URL mercupy_parser-0.2.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6359e589850095cd77f2ec170ff04333e3600fa0c45e8771b739a341a2f73da6
BLAKE2b-256 checksum
How to use checksums
d951ce4ab2bc107709fe62998527d57539b1a91f447eb552c7573e13191bbec3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for mercupy-parser 0.2.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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