Description Usage Arguments Examples
html is deprecated: please use read_html
() instead.
1 2 3 4 5 6 7 |
x |
A url, a local path, a string containing html, or a response from an httr request. |
... |
If |
encoding |
Specify encoding of document. See |
as_html |
Optionally parse an xml file as if it's html. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # From a url:
google <- read_html("http://google.com", encoding = "ISO-8859-1")
google %>% xml_structure()
google %>% html_nodes("div")
# From a string: (minimal html 5 document)
# http://www.brucelawson.co.uk/2010/a-minimal-html5-document/
minimal <- read_html("<!doctype html>
<meta charset=utf-8>
<title>blah</title>
<p>I'm the content")
minimal
minimal %>% xml_structure()
# From an httr request
google2 <- read_html(httr::GET("http://google.com"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.