Giter Site home page Giter Site logo

socialmediadatamining's Introduction

SocialMediaDataMining

It is an experimental work on social media data collection and simple processing

#adapted and modified from https://www.tutorialspoint.com/big_data_analytics/data_collection.htm

#Steps : #1. install packages IN r : install.packages(c("devtools", "rjson", "bit64", "httr"))

Make sure to restart your R session at this point

library(devtools) install_github("geoffjentry/twitteR")

install.packages("tm") # for text mining install.packages("SnowballC") # for text stemming install.packages("wordcloud") # word-cloud generator install.packages("RColorBrewer") # color palettes

#2. Set up twitter application

Go to https://apps.twitter.com/app/new and log in. After filling in the basic info, go to the “Permission" tab and select "Read, Write and Access direct messages" Make sure to click on the save button after doing this In the "Details" tab and access tokens , take note of your consumer key, consumer secret, acces_token and access_token_secreet consumer_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" consumer_secret = "bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" access_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" access_token_secret= "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

#3. Back to R Enter the value of consumer key, consumer secret, acces_token and access_token_secreet in R source code

socialmediadatamining's People

Contributors

asetya avatar

Stargazers

Julle03 avatar

Watchers

 avatar Julle03 avatar

Forkers

kardilah

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.