Skip to content

Instantly share code, notes, and snippets.

@abdu95
Last active Dec 6, 2020
Embed
What would you like to do?
install.packages("xml2", "rvest")
#Loading the rvest package
library(rvest)
url <- 'https://tjournal.ru/analysis/240516-glavnye-vakciny-ot-covid-19-dolgo-li-zhdat-skolko-budut-stoit-i-poyavyatsya-li-v-rossii-zarubezhnye-preparaty'
webpage <- read_html(url)
article_nodeset <- html_nodes(webpage,'.content--full p')
article <- html_text(article_nodeset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment