I want to use functions from rvest package in loop (to extract part of html code from many pages). In lista_strona I have url of pages to be scraped. Without loop this works fine.
In loop I have an error
"Error in doc_parse_file(con, encoding = encoding, as_html = as_html, options = options) : Expecting a single string value: [type=character; extent=4]"
lista_stron<-read.csv("C:/Users/.../Desktop/R/rvest/X.csv", header = T )
for (a in lista_stron) {read_html(a)%>%html_nodes(".gray2 span")%>%html_text()}
What can I do to use this functions in loop?