Created
May 5, 2012 22:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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