web_parser: Parses web pages

Description Usage Arguments Value Source Examples

View source: R/mercury.R

Description

With just one API request, Mercury takes any web article and returns only the relevant content <e2><80><94> headline, author, body text, relevant images and more <e2><80><94> free from any clutter. It<e2><80><99>s reliable, easy-to-use and free.

Usage

1
web_parser(page_urls, api_key)

Arguments

page_urls

One or more urls to be parsed

api_key

Key for the API

Value

a tibble

Source

https://mercury.postlight.com/web-parser/

Examples

1
2
3
4
5
6
7
8
## Not run: 
# First get api key here: https://mercury.postlight.com/web-parser/

# Then run the code below replacing the X's wih your api key:
web_parser(page_urls = "https://trackchanges.postlight.com/building-awesome-cms-f034344d8ed",
           api_key = XXXXXXXXXXXXXXXXXXXXXXX)

## End(Not run)

postlightmercury documentation built on May 2, 2019, 2:08 a.m.