read_html2: Read PTT pages with "over18-confirmation"

Description Usage Arguments Value Examples

View source: R/data-retrieve.R

Description

A wrapper of xml2::read_html() with cookie set to bypass PTT's "over18-confirmation".

Usage

1

Arguments

url

Character. The URL of the target web page.

...

Additional arguments passed on to read_html.

Value

An XML document. See read_html for more information.

Examples

1
2
url <- "https://www.ptt.cc/bbs/Gossiping/index.html"
read_html2(url)

liao961120/pttR documentation built on Dec. 16, 2019, 2:19 a.m.