https://github.com/girbons/mercury-parserpy
python api wrapper for https://mercury.postlight.com/web-parser/
https://github.com/girbons/mercury-parserpy
api-client mercury-parser python3
Last synced: about 2 months ago
JSON representation
python api wrapper for https://mercury.postlight.com/web-parser/
- Host: GitHub
- URL: https://github.com/girbons/mercury-parserpy
- Owner: Girbons
- License: mit
- Created: 2017-03-18T20:19:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T21:02:26.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T16:13:06.864Z (about 2 months ago)
- Topics: api-client, mercury-parser, python3
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 23
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mercury-parserpy
[](https://travis-ci.org/Girbons/mercury-parserpy)
## Getting Started
From the command line:
```
pip install mercury-parserpy
```## Usage
```python
from mercury_parser.client import MercuryParser# default api endpoint is http://localhost:3000/
parser = MercuryParser()
article = parser.parse_article('ARTICLE_URL')
article.json()articles = ['url1', 'url2', 'url3']
# parse multiple articles urls return a JSON
# where the key is the article url
articles = parser.parse_multiple_articles(articles)
```### Customize API Endpoint
```python
from mercury_parser.client import MercuryParserparser = MercuryParser(api_endpoint="http://api-endpoint/")
```