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

read_html2(url, ...)

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

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