I am trying to scrape political speeches from this website: https://www.narendramodi.in/category/text-speeches
Using rvest package, I just started with this code:
modi <- “https://www.narendramodi.in/category/text-speeches”
html <- read_html(modi)
However, read_html runs on for hours without stopping. I cannot find a workaround or a reason why this is happening? Should I just leave the code running for more time?
I was expecting this to work so that I could go on further and use selectorgadget to scrape the speeches on the webpage but I am unable to go further than this as the read_html function just does not stop running.
Any help/advice would be appreciated.
Thanks a lot
Aryan Goyal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.