mercury-parserpy

python api wrapper for https://mercury.postlight.com/web-parser/


Keywords
api-client, mercury-parser, python3
License
MIT
Install
pip install mercury-parserpy==0.7.0

Documentation

mercury-parserpy

Build Status

Getting Started

From the command line:

pip install mercury-parserpy

Usage

from mercury_parser.client import MercuryParser

# default api endpoint is http://localhost:3000/
parser = MercuryParser()
article = parser.parse_article('ARTICLE_URL')
article.json()

# parse multiple articles urls return a JSON
# where the key is the article url
articles = parser.parse_multiple_articles(*ARTICLES_URLS)

Customize API Endpoint

from mercury_parser.client import MercuryParser

parser = MercuryParser(api_endpoint="http://api-endpoint/")