Elementolab/Social Media

From Icbwiki

Jump to: navigation, search

back to ElementoLab

For example, to live stream #AACR, you can use

<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
 version: 2,
 type: 'search',
 search: '#AGBT13',
 interval: 30000,
 title: 'Live AGBT tweet feed',
 subject: 'AGBT',
 width: 'auto',
 height: 600,
 theme: {
   shell: {
     background: '#990000',
     color: '#ffffff'
   },
   tweets: {
     background: '#FFE2B9',
     color: '#000000',
     links: '#0000ff'
   }
 },
 features: {
   scrollbar: false,
   loop: true,
   live: true,
   behavior: 'default'
 }
}).render().start();
</script>
  • Using Apache Malhout to classify tweets
http://chimpler.wordpress.com/2013/03/13/using-the-mahout-naive-bayes-classifier-to-automatically-classify-twitter-messages/
  • Add a follow button
<a href="https://twitter.com/ElementoLab" class="twitter-follow-button" data-show-count="false">Follow @ElementoLab</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js"; 
 fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  • NLTK is a great Python library for NLP
http://nltk.org/

An example

http://bommaritollc.com/2011/02/16/pre-processing-text-rtm-vs-pythonnltk/

The book

http://nltk.org/book/
Personal tools