Skip to content

Instantly share code, notes, and snippets.

@abdu95
Last active December 6, 2020 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdu95/706331a9856b01cf3f21caff9d08c071 to your computer and use it in GitHub Desktop.
Save abdu95/706331a9856b01cf3f21caff9d08c071 to your computer and use it in GitHub Desktop.
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