Learn R Programming

postlightmercury (version 1.2)

web_parser: Parses web pages

Description

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

Usage

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

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab