Visualizations of Twitter data
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
data
html
js
node_modules
text
.DS_Store
LICENSE
README.md
index.html
package-lock.json
server.js

README.md

Description

This is a webpage with visualizations of Twitter data using D3. The visualizations allows for exploratory data analysis of Twitter data. However, only dummy data is provided by me - you have to collect real data with your own Twitter credentials to comply with data protection laws and rules.

This is a part of my undergraduate project within Project MEP.

Get started

Requirements: Node to run the web server.

From the command line:

  1. Download the repository:

    $ git clone https://github.com/olofbjorck/twitterVisualizations.git

  2. Navigate to the files:

    $ cd twitterVisualizations

  3. Start the web server (this is where Node is required):

    $ node server.js

  4. Open the webpage in a browser:

    http://localhost:8080/

    Note: I've only used and tested it in Chrome.

If that's working, we're set to add data. Change the dummy files to real data and change the filenames in the JavaScript files.

Data format

Note that the code expects csv-files with column names generated from Project MEP code:

userTimeline.csv:

CurrentTweetDate CurrentTwID CurrentTweet TweetType

tree.csv:

UserID ScreenName followersCount NrOfRetweets NrOfRetweeters

links.csv:

source target weight

nodes.csv: (group is not implemented and thus not really needed)

id idNr weight group