Description Usage Arguments Value Examples
Extract the full text or links from the PRA Rulebook given the URL.
1 | get_content(x, type = "text", single_rule_selector = NULL)
|
x |
String. URL to scrape. |
type |
String. Type of information to scrape. Valid arguments: "text" or "links". |
single_rule_selector |
String. Optional. Is CSS there a selector for individual rules? If "yes" then provide rule-level URLs to scrape. Leave blank for levels levels above rule (e.g. chapter, part or sector). |
Data frame with URLs and corresponding text.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
get_content(
"http://www.prarulebook.co.uk/rulebook/Content/Chapter/242047/16-11-2007")
get_content(
"http://www.prarulebook.co.uk/rulebook/Content/Chapter/242047/16-11-2007",
"links")
get_content(
"http://www.prarulebook.co.uk/rulebook/Content/Rule/211145/18-06-2019#211145",
"text",
single_rule_selector = "yes")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.