speechscrape: Speech Scrape

Description Usage Arguments Value Examples

View source: R/speechscrape.R

Description

Here I am describing some things.

Usage

1
2
3
speechscrape(url, slctr = "p+ p")

speechscrape2(.data)

Arguments

url

string containing location of chosen html file

slctr

string specifying css selector for chosen text

.data

A data frame or tibble containing the url and css selector of the desired documents

Value

speechscrape returns a single character value containing containing the processed text found at the location and css selector specified by input

speechscrape2 returns a list object where each element is a list containing a single processed text,

Examples

1
2
3
4
5
url <- system.file("speeches", "vietnam.txt", package = "speechiespeech")
slctr <- spchlist$slctr[[2]]
speechscrape(url, slctr)

#speechscrape2(spchlist)

JCRascal/speechiespeech documentation built on Nov. 27, 2020, 5:18 p.m.