home.social

#rvest — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rvest, aggregated by home.social.

fetched live
  1. | Relationships – Remake | | Are we making more or fewer remakes as the years go by?. Built with using , , , and .

  2. Yesterday I successfully executed my first web scraping in R :ablobcathappypaws: It was my first time investigating a website so deeply. I also learned that dynamic pages are a pain to scrape from. Still, I'm curious to try other pages!

    @academicchatter @rstats #R #webscraping #polite #rvest #RSelenium

  3. @hadleywickham You asked on Twitter last fall for examples that don't work. This used to pull the latest version of but doesn't work anymore (unless I save the page first)

    spans <- xml2::read_html("posit.co/download/rstudio-desk") |>
    rvest::html_element(".mt-\\[40px\\].body-md-regular") |>
    rvest::html_elements("span") |>
    rvest::html_text() |>
    stringr::str_extract("Version: .*")

    rstudio_latest_version <- spans[!is.na(spans)] |>
    stringr::str_extract("[0-9.\\+]+")

  4. I'm presenting a new package {oddor} that provides functions to scrape data from oddsportal dot com. Dealing with these data for the first time, I was surprised how hard it is to grab the simple tables from this dynamically generated website. After wondering countless QAs, I managed to do it and decided to wrap the solution as a package. In the future, I plan to store the scraped data within the package. Improvements/suggestions are welcome

    github.com/ikashnitsky/oddor