Overview

The following Wikipedia webpage contains information on past presidential debates.

url <-  "https://en.wikipedia.org/wiki/United_States_presidential_debates"

Please use this url to answer the following questions.



Questions


(1) Download the wikipedia website using the provided url.




(2) Scrape all the text from the wiki page. Collapse content into a single string.




(3) Scrape all the references from the wikipedia page and store in a tibble data.frame.




(4) Download and clean the table after the “Timeline” header on the page. Create a tidy data frame that only has the election date and the presidential candidates as variables.