Python wrapper for mercury-parser
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mercupy_parser-0.2.1.tar.gz
(14.6 kB
view details)
Built Distribution
File details
Details for the file mercupy_parser-0.2.1.tar.gz
.
File metadata
- Download URL: mercupy_parser-0.2.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fdac7fd29d8b97f55a44b71fc80995ce1a484a2268d56952a4e3471a73928364
|
|
MD5 |
74739897390a42dbb1b4962faa7ceddf
|
|
BLAKE2b-256 |
8d3e4243a2faf6c330ba8b4e334e8472e6cb0aa8d57e1e5705d201704e9cc791
|
File details
Details for the file mercupy_parser-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: mercupy_parser-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6359e589850095cd77f2ec170ff04333e3600fa0c45e8771b739a341a2f73da6
|
|
MD5 |
a172bf686e87fc4f4661c29b3d8b74e7
|
|
BLAKE2b-256 |
d951ce4ab2bc107709fe62998527d57539b1a91f447eb552c7573e13191bbec3
|