I'd like to download the source code of an HTML. How can I do it?
I try to use read_html
of the package xml2
. But I had an error message.
test <- read_html('https://www.epicurious.com/search/Tropical%20Glazed%20Ham%20with%20Curried%20Pineapple%20Chutney')
Error in open.connection(x, "rb") : HTTP error 400.
From Mozilla, the source code can be seen through the source.