Re: [R] help with web scraping

2020-07-24 Thread Spencer Graves
Hi Bill et al.:   That broke the dam:  It gave me a character vector of length 1 consisting of 218 KB.  I fed that to XML::readHTMLTable and purrr::map_chr, both of which returned lists of 337 data.frames. The former retained names for all the tables, absent from the latter.  The

Re: [R] help with web scraping

2020-07-23 Thread William Michels via R-help
Hi Spencer, I tried the code below on an older R-installation, and it works fine. Not a full solution, but it's a start: > library(RCurl) Loading required package: bitops > url <- > "https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975; > M_sos <-

[R] help with web scraping

2020-07-23 Thread Spencer Graves
Hello, All:   I've failed with multiple attempts to scrape the table of candidates from the website of the Missouri Secretary of State: https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975       I've tried base::url, base::readLines,