scrapeR {NHSDataDictionaRy}R Documentation

ScrapeR - scrape web information with scrapeR

Description

Takes the url and xpath and scrapes HTML table elements from a website.

Usage

scrapeR(url, xpath, ...)

Arguments

url

Website address to connect to

xpath

Xpath obtained through inspecting the individual HTML elements

...

Function to pass additional function forwarding options

Details

This function is specifically designed to work with HTML tables and x path links through to direct HTML elements. The function is versatile and can be used on any URL where an xpath can be obtained through the URL and HTML inspection process.

Value

Returns the results of the scraping operation and the relevant fields from the html table - the xpath should make reference to an html table, otherwise an error is returned advising the user to check the xpath and url are correct.


[Package NHSDataDictionaRy version 1.2.5 Index]