I\'m trying to scrape this website:
http://www.racingpost.com/greyhounds/result_home.sd#resultDay=2015-12-26&meetingId=18&isFullMeeting=true
through
Your selector is good and rvest is working just fine. The problem is that what you are looking for is not in url object.
If you open that website and use web browser inspecting tool, you will see that all data you want is descendant of Data you want is loaded dynamically and The exact same issue was brought up in rvest-introducing blog post and here is what package author had to say: You have two options for pages like that: Use the debug console in the web browser to reverse engineer the communications protocol and request the raw data directly from the server. Use a package like RSelenium to automate a web browser. If you don't need to obtain that data repeatedly, or you can accept a bit of manual work in every analysis, the easiest workaround is: As you can see, there are some encoding issues along the way, but they can be solved later on.
rvest is not able to cope with that. It can only fetch website source code and retrieve anything that there is without any client-side processing.
> url <- read_html("/tmp/racingpost.html")
> html_nodes(url, ".black")
# {xml_nodeset (56)}
# [1] A9
# [2] £61
# [3] 470m
# [4] -30
# (skip the rest)