An open API service indexing awesome lists of open source software.

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/

Awesome Lists containing this project

README

        

# mercury-parserpy

[![Build Status](https://travis-ci.org/Girbons/mercury-parserpy.svg?branch=master)](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 MercuryParser

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