|Tutorial: Create Twitter stats for user, list or keyword
|Page 1 of 1|
|Author:||Ave [ Sun Jan 29, 2012 9:47 pm ]|
|Post subject:||Tutorial: Create Twitter stats for user, list or keyword|
- Twitter seems to have disabled RSS feeds so this tutorial is pretty much obsolete now.
- Some work-arounds for Twitter RSS feed generation might exist that you can search from Google but they require more tweaking.
Example Twitter stats pages created with mIRCStats
Stats for Twitter list "most-influential-in-tech"
Stats for Grammy Awards 2012 Twitter list
Stats for Twitter keyword "Tampere" | Stats for Twitter keyword "Tampere" in Finnish
Stats for Twitter user "FoxNews"
Install RSSLogger and mIRCStats
First follow these installation tutorials:
Locating Twitter feed URLS
Twitter publishes RSS and Atom feeds for all users and you can also get RSS feed for any Twitter list or keyword.
Twitter user feed URL is:
Twitter list feed URL is:
Twitter user's favorites feed URL is:
Twitter keyword feed URL is:
http://search.twitter.com/search.atom?q=tampere (The example at the top of this page uses this feed)
Logging Twitter feeds with RSSLogger
When you have located feed(s) that you want to create stats for, create a new log into RSSLogger with "Create new log" button. Define a descriptive name (that's used in directory and log file names), e.g. "Twitter Microsoft". New log appears in the list with "No feeds" status.
Double-click the log to open the Log Properties dialog. Here you can add any number of feeds that you want to be logged into this log. Press "Add Feed" button and add a feed, e.g. http://search.twitter.com/search.atom?q=Microsoft
When you have added a feed (or multiple feeds), press "Update log" to do the first update. If your network connection is ok, RSSLogger reads the feed and updates the log title automatically and writes new lines to the log file.
Press "Open log" button to see if the feed was logged correctly. It should show something like this:
*** Version: RSSLogger v0.80 beta
*** Startdate: 11 Dec 2011 00:00:00
*** Name: Twitter Microsoft
*** Title: Microsoft - Twitter Search
*** Link: http://search.twitter.com/search?q=Microsoft
*** Timezone: 2
[30 Jan 2012 10:33:49] BertWolters (Bert Wolters) : RT @Ernst_Rijk: How cool is this: Control #SQLServer 2012 with Gestures using #Microsoft #Kinect : http://t.co/qh7hF2gE
[30 Jan 2012 10:33:48] Tech_All (AllThingsTechnology) : #Microsoft #News: "Will Microsoft Attempt to Buy Yahoo Again? Profit Confidential Investigates - PR Web (press relea... http://t.co/t0PXIamM
[30 Jan 2012 10:33:50] DCmspoints (Microsoft Points) : Get microsoft points for cheap: http://t.co/L8HiKqbq
By default, "Title" is used as stats page title by mIRCStats. You can define the log title manually in Log Properties dialog -> Settings -> Log title.
Now close the "Log Properties" dialog and open the "Settings" tab in RSSLogger's main window. Here you can define RSSLogger to be started automatically when you log into Windows. It's also possible minimize it to system tray so it will update the logs on the background.
You can now leave RSSLogger running. It will update all defined logs in selected intervals.
Creating stats for the Twitter feed log with mIRCStats
Now run mIRCStats. First you need to tell mIRCStats which parser configuration it should use. Press "Change" button in main window or go to "Log Parser" settings page. Select parser configuration file "Twitter_parser.txt".
Now select the newly created logfile to be analyzed (at the top left in main window). Press file open dialog button and browse to your RSSLogger installation directory and to "Logs" directory under it. Continue browsing to the log directory (e.g. "Twitter Microsoft") and select the log file. mIRCStats now asks if it should define filter for multiple logfile selection with * in it. Click "Yes", because RSSLogger will log feeds into monthly files.
Press "Analyze log" and mIRCStats will first read the new logfile. If everything goes fine, it says something like this:
Parser configuration file Twitter_parser.txt loaded.
Analyzing log structure...
Twitter Microsoft.log: 22 lines
(mon 30.01.2012 10:33 - mon 30.01.2012 10:34)
Log spans 1 days.
Go to "HTML Output/Language" settings page and select language file "lang_Twitter_english.msl".
Now press "Make stats" button. (If this is your first time running mIRCStats, it will first ask your name or nickname to be displayed in the stats page). mIRCStats now generates the stats page and you can view it by right-clicking the output window and selecting "View stats page". Stats page like this opens up: http://www.nic.fi/~lct/stats/tampere_twitterstats.html
Adjusting the settings
You can fine-tune mIRCStats settings by browsing the tree-view at the left side of the main window. You can apply the new settings to your stats page by re-running the stats (Clear -> Analyze log -> Make stats). Remember to press "Save config" after you have made changes to the settings.
Automatic FTP uploading and stats generation
See this tutorial for detailed info how you can automate your stats generation.
Detailed mIRCStats help on any feature can be accessed by pressing F1.
See the list of all RSSLogger & mIRCStats tutorials here: viewforum.php?f=11
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group