Skip to content

Instantly share code, notes, and snippets.

@jroberayalas
Last active August 1, 2017 22:57
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 jroberayalas/9fe01dd08dcbf3568c91260cfd01dcb9 to your computer and use it in GitHub Desktop.
Save jroberayalas/9fe01dd08dcbf3568c91260cfd01dcb9 to your computer and use it in GitHub Desktop.
library(rvest)
webpage <- read_html("https://www.nytimes.com/interactive/2017/06/23/opinion/trumps-lies.html")
webpage
#> {xml_document}
#> <html lang="en" class="no-js page-interactive section-opinion page-theme-standard tone-opinion page-interactive-default limit-small layout-xlarge app-interactive" itemid="https://www.nytimes.com/interactive/2017/06/23/opinion/trumps-lies.html" itemtype="http://schema.org/NewsArticle" itemscope="" xmlns:og="http://opengraphprotocol.org/schema/">
#> [1] <head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<title>President Trump’s L ...
#> [2] <body>\n \n <style>\n .lt-ie10 .messenger.suggestions {\n display: block !important;\n ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment