Description Usage Arguments Value Examples
View source: R/scrapeCandidates.R
This function extracts the candidate-related data from the webpages.
1 | scrapeCandidates(x, tabextract = NULL, savetodir = "", messages = TRUE)
|
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). |
Returns the list containing the data.frame object and retrieval date.
1 2 3 4 | library(CECscraper)
url.moscow.candidates="http://notelections.online/region/region/moscow_city?action=show&root=1&tvd=27720002327740&vrn=27720002327736®ion=77&global=null&sub_region=0&prver=0&pronetvd=null&vibid=27720002327736&type=220"
moscow.candidates<-scrapeCandidates(url.moscow.candidates)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.