I am trying to fetch one website link through web scrapping using rstudio cloud with the code I shared. But the result I am getting in console as twice the website name and the name of the website link up with NA. How to remove this NA from website name?
install.packages("rvest")
install.packages("dplyr")
library(rvest)
library(dplyr)
link = "https://tu■■■■a.info/"
page = read_html(link)
website_links = page %>% html_nodes("h1")%>% html_attr("href") %>% paste("http://www.tu■■■■a.info",.,sep="")
website_links
> website_links
[1] "http://www.tu■■■■a.infoNA" "http://www.tu■■■■a.infoNA"