ralger
Easy Web Scraping
ralger stopped scraping only web pages and started scraping the files on them.
◆Recent moves
- 1y ago
ralger 2.3.0 adds PDF, Excel and CSV scraping
⚡ SPARKFive new functions extend the package past HTML for the first time — pdf_scrap(), xls_scrap(), xlsx_scrap(), csv_scrap() and comments_scrap(). After four years of robustness work on page scraping, this release changes what ralger can read rather than how reliably it reads it.
View source ↗ - 5y ago
ralger 2.2.2 adds attribute and missing-alt image scraping
attribute_scrap() generalizes extraction to arbitrary HTML attributes, and images_noalt_scrap() targets images lacking alt text — a small accessibility-auditing use case. Network-dependent tests are also skipped on CRAN.
View source ↗ - 5y ago
ralger 2.2.1 adds image download and preview
images_scrap() downloads images from a page and images_preview() lists their URLs first — the preview-then-fetch pairing that makes bulk downloading reviewable. paragraphs_scrap() also gains error handling and empty elements are stripped from scrap().
View source ↗ - 5y ago
ralger 2.2.0 returns NA instead of erroring on dead links
Every function is wrapped in tryCatch so missing connectivity or an invalid link produces a message and NA rather than an exception. For scraping loops over many URLs this is the difference between a partial result and no result.
View source ↗ - 5y ago
ralger 2.1.0 adds h3 headings and case-sensitive matching
titles_scrap() picks up h3 elements alongside h1 and h2, and swapping stringr's str_detect for base grepl gives users control over case sensitivity. Incremental widening of what counts as a title.
View source ↗ - 6y ago
ralger 2.0.1 adds fill for ragged tables
A contributed fill argument passed through to rvest lets table_scrap() handle tables with inconsistent row and column counts — the single most common reason HTML table extraction fails outright.
View source ↗