scrapeCandidates: scrapeCandidates function

Description Usage Arguments Value Examples

View source: R/scrapeCandidates.R

Description

This function extracts the candidate-related data from the webpages.

Usage

1
scrapeCandidates(x, tabextract = NULL, savetodir = "", messages = TRUE)

Arguments

x

url, list of urls.

tabextract

select the table number to extract in order to override the table selection algorithm.

savetodir

save downloaded html files to directory, i.e. "C:/Documents".

messages

display progress messages (TRUE).

Value

Returns the list containing the data.frame object and retrieval date.

Examples

1
2
3
4
library(CECscraper)

url.moscow.candidates="http://notelections.online/region/region/moscow_city?action=show&root=1&tvd=27720002327740&vrn=27720002327736&region=77&global=null&sub_region=0&prver=0&pronetvd=null&vibid=27720002327736&type=220"
moscow.candidates<-scrapeCandidates(url.moscow.candidates)

kkalininMI/CECscraper documentation built on Oct. 28, 2020, 1:47 a.m.