unBlogged

Click here, click there, click everywhere

Opera Chat log analyzer

, , , , , ,

Hello!

Did you know you can enable logging in Opera Chat? It works with Opera 8 and 9. Perhaps with Opera 7 too (I am not sure).

To enable logging for Opera Chat edit your mail/accounts.ini file and add/change:
Incoming Log File=c:\path\to\your_file.log

... for the [account] you want.

The generated log is debug mode, almost unreadable by humans. Plus, it's a single file: no separate files for private messages or channels.

Because of this I have made script that parses the log and generates human readable files.

One tiny problem: Opera does not include the log start/end date (only the time), which forces me to guess the log date. Log date guessing works by catching all UNIX timestamps sent by the IRC server smile, user signon, topic date, etc.

The script creates files for private chats, channels and one $server file

For one file of 166.4 MB on AMD Duron 1.3ghz 512MB RAM with 7200 RPM HDD running Ubuntu 6.06 Linux, PHP 5.1.2 ... parsing took about 5 minutes. The script generated 135 files (12.3 MB). Average speed: 502 KB/s.

For this release I have optimized the code for better speed, initially this script was 3 times slower.

The script was tested on irc.opera.com and irc.freenode.net.

The output is text, not HTML.

Generally the script should run fine, but you can easily brake it. If you improve the script please send the updated file to me.

You need only PHP, nothing else. It probably works with PHP 4 too (I only tested with PHP 5.1).

Download the script

Rename the file to .php. Uploaded as .txt to avoid conflicts.

Thanks and let me know if you find this useful. Any comments suggestions are welcome!

Opera 10+ wishlist(Why) RSS is crap

Comments

Bjorn Tiplingbtipling Thursday, August 10, 2006 7:01:59 AM

Gah, no real logs though. What a silly thing to leave out. sad

Mihai Sucanrobodesign Thursday, August 10, 2006 9:16:13 AM

True. No real logs. However, with my script I was able to get real logs. It was very useful for me smile.

Dan Alexandrudantesoft Wednesday, September 13, 2006 1:37:31 PM

I have a script sitting somewhere, which cuts out the server messages (the minute by minute ISON, et cetera) and the filesize. This looks promising. GPL ?

Mihai Sucanrobodesign Wednesday, September 13, 2006 2:43:54 PM

No, not GPL.

It's CC by-nc-nd 2.5.

File updated, thanks for remembering me.

ernesteban Sunday, January 17, 2010 4:08:28 PM

Excuse me, but do you have updated the script to work with more recent versions of opera? Or should I google better to find out there is already a decent log-module available for opera irc chat? =)

Mihai Sucanrobodesign Sunday, January 17, 2010 5:59:08 PM

Unfortunately I have not updated this script for recent versions of Opera.

Additionally, Opera still has no support for IRC chat logs.

I have switched to using Xchat.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies