No description, website, or topics provided.
JavaScript Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Twitter Tag Cloud 
This application captures tweets from twitter, stores it in Couchbase Server and generates a tag cloud out of the keywords. 

After installing Couchbase Server 2.0 and doing the manual steps described below, run (with your twitter API creds).
Load tagcloud.html to render a tagcloud out of the data collected.

Twitter Streaming API (Your twitter API credentials need to be entered in
Tweepy (Python libraries for twitter)
Couchbase Server 2.0 (Developer Preview build will suffice)

The app is written in Python and consists of mainly two simple components:
A small service based on tweepy that implements a StreamListener which inserts incoming data in the Couchbase Server. Here you can also set filter terms. This example uses mostly terms related to “Big Data”.

A few lines of HTML and JavaScript to render the tag cloud. 

Manual steps
(1) Install Couchbase Server Latest Build

(2) Create Views
You need to create a Couchbase server 2.0 view called hashTagsByName with the following map and reduce functions:
To learn how to create Couchbase Server 2.0 views check out

Map function
function (doc) {
  doc.entities.hashtags.forEach(function(htag) {
    emit(htag.text.toUpperCase(), null)

Reduce function

(3) Edit to modify the Couchbase Database Credentials and Twitter API Keys
(4) Install all necessary dependant libraries such as tweepy, python SDK for Couchbase Server 2.0 (
(5) Run and use tagcloud.html to view the results. Enjoy!