XML and Web pages
We will use XML package to do the parsing.
Install package
Load XML tree
Get element name
Access first element.
Get element on exact position (going through subelements).
Using custom function to load values from XML. xmlValue
is that function.
Using XPath.
Read a table from HTML
Get page using httr package
Authentificate with httr package
We can use authenticate
function in order to access a secured page.
The code above returns the following response.
Use
handle
function to access more page with during one authentificated session.
Last updated