Web Scraping: Installing rvest

This is an exciting post! In my last post, I described how I took a magical journey through a Word Press blog and found all these little gems along the way. In this post, I’m going to elaborate on one of the gems that I found: rvest and web scraping.

In the first post I mentioned in my last post, the author walked through an example of using the R package, rvest, to scrape data from the Lego Movie IMDB site.

rvest - The Lego Movie

rvest – The Lego Movie

I thought, “Well hey! I have a web scraping project I am working on. This looks really useful! I must learn more…”

So to start, I tried to install the rvest package in R. But I got an error: “package ‘rvest’ is available as a source package but not as a binary” “package ‘rvest’ is not available (for R version 3.0.2)”. Aw man!

Error! Error!

Error! Error!

So I googled the problem, which led me to the GitHub of the creator of rvest, Hadley Wickham. He’s young! And looks to be a contributor (author? I’m still trying to understand how to read the different roles in GitHub) of many major R packages including ones I’ve used like dplyr and ggplot2. It’s so cool to have such easy access to all these great people (and content!).

From there I installed the package directly from the GitHub site. I had to first install the devtools package (oooh what other goodies are in this package? I can be a developer!), then I could use the install_github function to install rvest from GitHub.



And it worked! Sweet! Now to test it…


2 thoughts on “Web Scraping: Installing rvest

  1. Pingback: Web Scraping: A Test on Teamwork | Alyssa Fu

  2. Alyn

    Have you given any kind of codtanerision at all with translating your web-site into German? I know a small number of translaters right here which would certainly help you do it for no cost if you wanna get in touch with me personally.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s