Description Usage Arguments Value Examples
View source: R/scrape_menu_rule.R
Helper function
1 | scrape_menu_rule(url, nodes_only, rulebook_date)
|
url |
String. URL to scrape. |
nodes_only |
XML nodes. Output of |
rulebook_date |
String. Date to scrape. |
Data frame
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
has_rules_url <- "http://www.prarulebook.co.uk/rulebook/Content/Chapter/218624/22-03-2006"
no_rules_url <- "http://www.prarulebook.co.uk/rulebook/Content/Chapter/219425/22-03-2006"
nodes_only <- httr::GET(no_rules_url) %>% PRArulebook:::extract_results()
nodes_only <-
nodes_only %>%
xml2::read_html() %>%
rvest::html_nodes("a")
scrape_menu_rule()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.