history_elections_spain_ex: Return the paths to the complete HTML website of the history...

View source: R/history_elections_spain_ex.R

history_elections_spain_exR Documentation

Return the paths to the complete HTML website of the history of elections in Spain

Description

This example hosts data from the website https://en.wikipedia.org/wiki/Elections_in_Spain which documents and collects data on all elections in Spain. This function returns the full HTML links to the local HTML files that can be used as exercises for scraping the data as if this was the online hosted version.

Usage

history_elections_spain_ex()

Details

Please note that this website are not meant to be used to reliably explore their hyperlinks or other features, as these will change inevitably when the website changes some of it's structures. This is because some of the links still point to the real website or other platforms.

Value

A character vector with with 1 local HTML link

Author(s)

Jorge Cimentada

Examples


library(xml2)
library(scrapex)

one_link <- history_elections_spain_ex()

read_html(one_link)

## Not run: 
# If you want to look at the website in your browser
# just wrap it in prep_browser and pass it to browseURL
browseURL(prep_browser(one_link))

## End(Not run)


cimentadaj/scrapex documentation built on Jan. 5, 2023, 9:49 p.m.