find_a_gp | R Documentation |
Scrape GP practices near a given postcode
find_a_gp(
client,
postcode,
base = "https://www.nhs.uk/service-search/find-a-gp",
sleep = 1
)
client |
|
postcode |
String with the target postcode. |
base |
String with the base URL for Google Maps website. |
sleep |
Integer with number of seconds to use as pause between actions on the web page. |
Data frame with GP practices near the given postcode
.
## Not run:
# Create RSelenium session
rD <- RSelenium::rsDriver(browser = "firefox", port = 4544L, verbose = FALSE)
# Retrieve GP practices near L69 3GL
# (Waterhouse building, University of Liverpool)
wh_gps_tb <- scrappy::find_a_gp(rD$client, postcode = "L69 3GL")
# Stop server
rD$server$stop()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.