Tonight Project:Analysing Twitter Stream

Today i logged on to twitter after long time.
Though i don’t use twitter much, i follow many people (about 100) none of them are from my friend circle.
I could see many tweets by a few people especially @Ladysaying.
I have this idea of finding how many tweets a particular person has made during last 24 hours for each of the person i am following.
Heading to dev.twitter.com.

Update 1:
Set up an application named Tweetlys; Twitter does not allow Twitter to be part of application name.
Generated Oauth tokens and secrets.
Using boilerplate code for getting data.
Succeded in getting my live stream working on number of tweets that i get.

use https://api.twitter.com/1.1/statuses/user_timeline.json
to get the stream.Optional parameters may include efficient retrieval methods.
#issue limiting / fetching the tweets upto 24 hours.

Update2 :
Finding the user data is quite simple, set up two dictionaries for storing user information based on the userid.
increment the value in the dicitonary if find the user id second time.

Update 3:
Will set up gui tommorow.
Here is the list of last 400 tweets
It is working good for an overnight project.
Here are the results of my analysis.
The following are list of [userid, tweet count,display name,,link] sorted by number of tweet counts

256495314 24 firstpostin http:/www.twitter.com/firstpostin
612528708 18 Ladysaying http:/www.twitter.com/Ladysaying
78941611 15 bhogleharsha http:/www.twitter.com/bhogleharsha
221005474 11 inspirefirst http:/www.twitter.com/inspirefirst
18538525 10 awryaditi http:/www.twitter.com/awryaditi
70652594 10 BollywoodGandu http:/www.twitter.com/BollywoodGandu
14112296 9 designtaxi http:/www.twitter.com/designtaxi
56039856 9 abhijitmajumder http:/www.twitter.com/abhijitmajumder
113352671 9 deespeak http:/www.twitter.com/deespeak
87118217 8 warne888 http:/www.twitter.com/warne888
145125358 7 SrBachchan http:/www.twitter.com/SrBachchan
6297852 6 warrenellis http:/www.twitter.com/warrenellis
24705126 5 ShashiTharoor http:/www.twitter.com/ShashiTharoor
22256645 3 GreatestQuotes http:/www.twitter.com/GreatestQuotes
92332298 3 kenghosh http:/www.twitter.com/kenghosh
38617902 3 RangitaNandy http:/www.twitter.com/RangitaNandy
59983585 3 ajaymaken http:/www.twitter.com/ajaymaken
15093629 3 shekharkapur http:/www.twitter.com/shekharkapur
15736190 3 smashingmag http:/www.twitter.com/smashingmag
1440641 2 nytimesarts http:/www.twitter.com/nytimesarts
17241895 2 chasejarvis http:/www.twitter.com/chasejarvis
17636405 2 DesignerDepot http:/www.twitter.com/DesignerDepot
5520952 2 paulocoelho http:/www.twitter.com/paulocoelho
128155589 2 TheVijayMallya http:/www.twitter.com/TheVijayMallya
56304605 2 sardesairajdeep http:/www.twitter.com/sardesairajdeep
68668384 2 Garimakumar7 http:/www.twitter.com/Garimakumar7
636129507 2 QuotePsychology http:/www.twitter.com/QuotePsychology
67554021 2 CyrilSebastian http:/www.twitter.com/CyrilSebastian
17717614 2 vikramchandra http:/www.twitter.com/vikramchandra
1504011 1 swissmiss http:/www.twitter.com/swissmiss
25940364 1 designsponge http:/www.twitter.com/designsponge
290664461 1 TaimurAbdaal http:/www.twitter.com/TaimurAbdaal
69914008 1 FarahKhanAli http:/www.twitter.com/FarahKhanAli
60025762 1 Todd_McFarlane http:/www.twitter.com/Todd_McFarlane
76294950 1 AnupamPkher http:/www.twitter.com/AnupamPkher
778242986 1 AvckPandey http:/www.twitter.com/AvckPandey
15608761 1 ariyahidayat http:/www.twitter.com/ariyahidayat
517984200 1 Maverick_3 http:/www.twitter.com/Maverick_3
19929890 1 BDUTT http:/www.twitter.com/BDUTT
41553 1 abduzeedo http:/www.twitter.com/abduzeedo
31606867 1 UniformCritics http:/www.twitter.com/UniformCritics
282100055 1 AppsAlliance http:/www.twitter.com/AppsAlliance
15238124 1 thecoolhunter http:/www.twitter.com/thecoolhunter
9313022 1 Behance http:/www.twitter.com/Behance

Oh @Ladysaying you are second tweet more.
Or maybe my data set is too small.

Advertisements

2 thoughts on “Tonight Project:Analysing Twitter Stream

  1. I used to be suggested this blog by way of my cousin. I’m not sure whether or not
    this publish is written by way of him as no one else recognize such
    unique about my problem. You’re amazing! Thanks!

    Like

What do you think about this article?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s