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 columns

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 <- getURL(