xpathTextR {NHSDataDictionaRy} | R Documentation |
xpathTextR function
Description
Returns xpath text from websites and can be used to access specific HTML nodes
Usage
xpathTextR(url, xpath, ssl_needed = FALSE)
Arguments
url |
The link for the website |
xpath |
The xpath string derived by using the Inspect functionality in a web browser. |
ssl_needed |
Default - FALSE - Boolean to indicate whether to need a SSL certificate |
Value
A list with the results of scraping the specific xpath element
result - the extracted text from the website element that has been scraped
website_passed - a copy of the input url for the website
html_node_result - returns the extracted html node result
datetime_access - returns a timestamp of when the results of the scraping operation have been completed
person_accessed - retrieves the system environment stored username and domain - this is concatenated together to form a mixed charatcer string