Skip to content

ewdave/mercury-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercury Parser

A Simple NodeJS Wrapper for the Mercury Web Parser API

Installation

npm install mercury-parser

If using yarn

yarn add mercury-parser

Usage

// Require the library, passing your API key generated on [Mercury Web Parser API](https://mercury.postlight.com/web-parser/)  dashboard
const mercury = require('mercury-parser')(API_KEY);

Examples

mercury.parse('https://some-url').then(response =>
  console.log(response)
  }).catch(err => {
    console.log('Error: ', err);
})
// Available attributes 

response.title
response.author
response.date_published
response.dek
response.lead_image_url
response.content
response.next_page_url
response.url
response.domain
response.excerpt
response.word_count
response.direction
response.total_pages
response.rendered_pages

About

API Wrapper for Mercury Web Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published