<%@ page contentType="text/html; charset=UTF-8" %> Twitter list explorer <% String TLIST = "cjtlst2010"; int LIMIT = 10; int i = -1; java.util.Vector v = (java.util.Vector)application.getAttribute(TLIST); if (v==null) { application.setAttribute(TLIST, new java.util.Vector()); v = (java.util.Vector)application.getAttribute(TLIST); } request.setCharacterEncoding("UTF-8"); String url=request.getParameter("u"); if (url==null) url = request.getQueryString(); String sUser = null; String fullurl = null; i=0; if (url!=null) { if (url.length()>0) { if (url.startsWith("@")) url = url.substring(1); i = url.indexOf("/"); if (i<=0 || i==url.length()-1 || url.indexOf("<")>=0 || url.indexOf("&")>0) { out.println(""); url = null; } } else url = null; sUser=url; if (url!=null) fullurl = "http://twitter.com/"+url.substring(0,i)+"/lists/"+url.substring(i+1); if (sUser!=null) { String link = ""+sUser+""; if (!v.contains(link)) { if (v.size()>=LIMIT) v.removeElementAt(0); v.addElement(link); } } } %> "doSearch()"> <% } else { %> "document.forms['mf'].u.focus()"> <% } %>

Developed by: Coldbeans | twitter | blog
 

Twitter list explorer


Do you know what this Twitter list is about? This service performs a simple analytical service for <% if (fullurl!=null) { %> @<%=url%> list. <% } else { %> the given Twitter list. <% } %> Get all the buzz words and links from the above mentioned list.
 
<% if (url==null) { %>

 
Some popular lists for the beginning:
 

Technology: tech-news-people   geolocation

Celebrities: celebrity

Humor: top-50-funny


 
<% } else { %> Ok, let us see ...

Loading ... <% } %> <% if (v.size()>0 && sUser==null) { String latest="

Latest lists:
 "; java.util.Iterator it = v.iterator(); int count = 1; latest+=""; while (it.hasNext() && count<=LIMIT) { latest+=""; if (count%2==0 && count!=LIMIT) latest+=""; count++; } while (count<=LIMIT) { latest+=""; count++; } latest+="
"+(String)it.next()+"
 
"; latest+="

"; out.println(latest); } %> <% if (sUser==null) { %>
   
<% } %>

 



 
<% if (url!=null) { %>

<% } %>