View source: R/elpais_newspaper_ex.R
elpais_newspaper_ex | R Documentation |
This example hosts data from the website https://english.elpais.com/, which is the main page of the newspaper El País.
elpais_newspaper_ex()
This function returns the full HTML link to the local HTML files that can be used as exercises for scraping the data as if this was the online hosted version.
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.
A character vector with with 1 local HTML link
Jorge Cimentada
library(xml2) library(scrapex) one_link <- elpais_newspaper_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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.