10/30/2017

General idea

Data scraping/web scraping

What is an API

  • Application Programming Interface
    • a way for software to communicate each other
    • restaurant example

What is an API

  • Web APIs
    • APIs for either web browser or web server
    • Twitter API, Google API, FB API…
    • Expedia example

Using APIs with R

  • Using R packages for interacting with specific APIs
    • twitteR, Rfacebook, googleAuthR, googleAnalyticsR…

  • Directly using R
    • google map

Getting data from Twitter

  • Getting credentials: consumer key & secret, access token & token secret