Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

MeltwaterArchive/Sound-of-Twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sound of Twitter

Use DataSift to visualize the sentiment on Twitter with lights and sounds.

You can see a demo over on YouTube or read more information on DataSift Labs

Prerequisites

You will need:

  • an API key from DataSift.

  • credit on your DataSift account (depending on the stream, this application may rapidly consume your credits).

  • access to the Salience Entities data source.

Configuration

Locate the following line in sound.js:

// connect to DataSift
DataSift.connect('<username>', '<apikey>', 'websocket.datasift.com');

Replace <username> with your DataSift username and <apikey> with your DataSift API key (look for it on your DataSift account page).

Save sound.js and open index.html in a web browser.

The default configuration of sound.js references a stream that filters for 'life'. You can create your own stream and filter for other keywords. If you do, you must change the stream hash in the call to DataSift.register():

DataSift.register('b65ceba2ba57cadc880a18bd48c2f467', {
	onMessage: function(d) { this.onMessage(d); }.bind(this),
	onError: function() {}
	});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages