We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Code for searching twitter
Page Index Toggle Pages: 1
Code for searching twitter (Read 485 times)
Code for searching twitter
Oct 3rd, 2009, 9:24am
 
am a final year engineering student..i need to perform search operation on twitter as part of my project..i am able to search for tweets but however i want to perform a search which is specific to a user profile..for eg is there any way through which i can specify a particular user and write a code which would perform searching for that particular keyword in that particular user profile only..hey i am really stuck with this..

The code for performing seach operation is:
     Twitter twitter = new Twitter();
   Query query = new Query(" what people tweet about");
query.setRpp(100);
   QueryResult result = twitter.search(query);
   System.out.println("hits:" + result.getTotal());
   for (Tweet tweet : result.getTweets()) {
       System.out.println(tweet.getFromUser() + ":" + tweet.getText()+"\n");

however this code performs a universal search..i am lukin 4 a code or an idea which would help me performing a search specific to a profile..

any help would be really appreciated..thanx
Page Index Toggle Pages: 1