mIRCStats Forums

State-of-the-Art IRC Channel Statistics
It is currently Mon Jan 22, 2018 5:40 pm

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Jan 29, 2012 9:48 pm 
mIRCStats Author
User avatar

Joined: Sat Feb 03, 2007 10:56 am
Posts: 561
UPDATE 2015:
- Facebook seems to have disabled RSS feeds so this tutorial is pretty much obsolete now.
- Some work-arounds for Facebook RSS feed generation might exist that you can search from Google but they require more tweaking.

Example Facebook stats page created with mIRCStats

Stats page for my Facebook friends' status updates

Install RSSLogger and mIRCStats

First follow these installation tutorials:

Locating Facebook feed URLS

Facebook page feed:
- You can find the feed link on any page, search for "Get updates via RSS" link at the bollom left of the page.
- E.g. Go to http://www.facebook.com/theoatmeal and the link will get you to this RSS feed: http://www.facebook.com/feeds/page.php? ... rmat=rss20

Facebook friends' status feed:
- Facebook doesn't publish these feeds, but you can use Facebook apps to create them:
- RSS News Feed Reader: http://apps.facebook.com/rssnewsfeedreader/
- FBRSS: http://apps.facebook.com/rssexport

Important: If you get an application error Secure browsing is not supported - This application does not yet support secure browsing (HTTPS), you can temporarily disable Facebook's "secure browsing" feature on Account Settings -> Security -> Secure browsing. With secure browsing disabled, open the app link again and get the RSS feed URL for RSSLogger. After this you can re-enable secure browsing feature again.

Logging Facebook 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. "Facebook" or "Facebook Oatmeal". 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://www.facebook.com/feeds/page.php? ... rmat=rss20

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: Facebook Oatmeal
*** Title: Facebook wall for The Oatmeal
*** Link: http://www.facebook.com/
*** Timezone: 2
[18 Jan 2012 23:32:41] The Oatmeal : It's snowing in Seattle today and every single person is having the exact same conversation
[20 Jan 2012 00:13:58] The Oatmeal : http://theoatmeal.com/blog/sopa_results | The results of yesterday's animated GIF about SOPA - The Oatmeal

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 your Facebook 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 "RSSLogger_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. "Facebook Oatmeal") 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 RSSLogger_parser.txt loaded.
Analyzing log structure...
Facebook Oatmeal.log: 17 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_Facebook_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/facebookst ... stats.html

If you're creating stats for your friends' status update activity, I suggest you hide random quotes on "Stats sections/Tables" settings page by unchecking "Show random quotes".

You should also let anyone to opt out from the stats if they wish to do so. You can add an info about this on the stats page at "HTML Output/Page Layouts" settings page, right-click the layout and select "Add stats section -> User HTML". Double-click the new section item and write a short note into "Code" field like this:

Inform me if you want your data to be removed from the stats!

You can hide any people from the stats by adding them to "Filter out following nicks" list on "Log Parser/Nicks/Exclusion" settings page.

Adjusting the settings

Facebook-like colour settings can be activated by selecting "Blue" color preset on "HTML Output/Colors" settings page.

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.

Have fun!

More tutorials

See the list of all RSSLogger & mIRCStats tutorials here: viewforum.php?f=11

- Ave

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Powered by phpBB® Forum Software © phpBB Group