Ironholds / WikipediR

R's MediaWiki API client library
Other
68 stars 18 forks source link

Follow redirect pages #24

Open davidfuhry opened 5 years ago

davidfuhry commented 5 years ago

When querying for a page by name that is a redirect, for example with page <- page_content("en", "wikipedia", page_name = "Ernst Karl Abbe", as_wikitext = FALSE) the downloaded page will be the redirect page (in this case saying that this is a redirect to "Ernst Abbe").

It would be usefull to have an (optional) argument to instead follow that redirect and retrieve the actual page.