Skip to content

Instantly share code, notes, and snippets.

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 ajdamico/2606161 to your computer and use it in GitHub Desktop.
Save ajdamico/2606161 to your computer and use it in GitHub Desktop.
webscrape the ISBN-10 values of the 100 most recent books posted to paperbackswap.com
library(XML)
url <- "http://www.paperbackswap.com/api/v1/index.php?RequestType=RecentlyPosted&Limit=100"
u <- xmlParse( url )
v <- getNodeSet( u , "/Response/Books/Book/ISBN-10" )
w <- sapply( v , xmlValue )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment