Giter Club home page Giter Club logo

webscrapper_twitter's Introduction

Extracting Tweets with R

Steps

There are already many tutorials out there on Text Mining/Opinion Mining with R. However not all codes run smoothly since many details are left out e.g which libraries are needed. You will find hereby my own version which runs on a Ubuntu 15.10 (64bits), RStudio Version 0.99.491 together with some recomendations based on the my experience while trying to implement the code.

Note:

You can also lookup this tutorial for a good start (includes screenshots).

Steps:

  1. Make sure you have:
  1. Connect with Twitter thorugh OAuth (ROauth library)
  • For this step please make sure you leave the Callback URL empty, otherwise you'll probably will have to restart your application due to a Twitter bug. If you are experiencing some authorization problems make sure your have all packages requiered and your libraries are uptodate.
  • I am using Ubuntu 15.10 64bit and thus I had to also install the 'base64enc' library.
  1. Fetch your Tweets
  • This step is quite easy since the 'twitteR' library by Jeff Gentry provides many useful functions.
  • However, I did experienced some difficulties converting the extracted Tweets (list) into a data frame. For doing so I used the plyr package (lapply)
  • This is still work in progress, I will keep you posted ....

Packages

webscrapper_twitter's People

Contributors

lauragabrysiak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.