## When you have a single URL:
urltoHtml("https://es.wikipedia.org/wiki/Socrates", text = "Socrates")
## It is possible to work with several items:
A <- c("https://es.wikipedia.org/wiki/Socrates",
"https://es.wikipedia.org/wiki/Plato",
"https://es.wikipedia.org/wiki/Aristotle")
urltoHtml (A, text = c("Socrates", "Plato", "Aristotle"))
## And you can also directly extract the info from nametoWikiURL():
urltoHtml(nametoWikiURL("Plato", "en"), "Plato" )
urltoHtml(nametoWikiURL(c("Plato", "Socrates", "Aristotle"), language="en"),
c("Plato", "Socrates", "Aristotle"))
Run the code above in your browser using DataLab