I am trying to scrape the underlying hyperlinks on a webpage but selecting the html nodes and corresponding attributes is not giving any results. I don’t know whether the data is stored in a meta tag or how to even identify that.
Using selectorgadget, I think that the css selector is “td”, but I can also see “tr” in the page. Opening the dev tools, I can see the link under the href attribute, but not getting that result out when running the following code:
library(rvest)
url = "https://www.firstrand.co.za/investors/debt-investor-centre/jse-listed-instruments/"
read_html(url) %>%
html_nodes(css = "td") %>%
html_nodes(css = "a") %>%
html_attr('href')
Page elements:
