Skip to content

Instantly share code, notes, and snippets.

@jroberayalas
Last active August 1, 2017 22:56
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/7d28f8321fa63eb192245e131e043592 to your computer and use it in GitHub Desktop.
Save jroberayalas/7d28f8321fa63eb192245e131e043592 to your computer and use it in GitHub Desktop.
results <- webpage %>% html_nodes(".short-desc")
results
#> {xml_nodeset (116)}
#> [1] <span class="short-desc"><strong>Jan. 21 </strong>“I wasn't a fan of Iraq. I didn't want to go into Ir ...
#> [2] <span class="short-desc"><strong>Jan. 21 </strong>“A reporter for Time magazine — and I have been on t ...
#> [3] <span class="short-desc"><strong>Jan. 23 </strong>“Between 3 million and 5 million illegal votes cause ...
#> [4] <span class="short-desc"><strong>Jan. 25 </strong>“Now, the audience was the biggest ever. But this cr ...
#> [5] <span class="short-desc"><strong>Jan. 25 </strong>“Take a look at the Pew reports (which show voter fr ...
#> [6] <span class="short-desc"><strong>Jan. 25 </strong>“You had millions of people that now aren't insured ...
#> [7] <span class="short-desc"><strong>Jan. 25 </strong>“So, look, when President Obama was there two weeks ...
#> [8] <span class="short-desc"><strong>Jan. 26 </strong>“We've taken in tens of thousands of people. We know ...
#> ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment