get_post_content: Retrieve content from an individual PTT post

Description Usage Arguments Value Examples

View source: R/scrape-post-helper.R

Description

get_post_content returns a data frame with 1 row and 1 col.

Usage

1
get_post_content(post_xml)

Arguments

post_xml

xml_document created by read_html2 or read_html See read_html for details.

Value

A data frame with 1 row and 2 col.

Examples

1
2
3
4
#url <- "https://www.ptt.cc/bbs/Gossiping/M.1534415307.A.BE5.html"
#post <- read_html2(url)

#get_post_content(post)

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