Advertisement
Guest User

IRC logs to HTML

a guest
Mar 13th, 2011
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. I might as well explain my process just in case someone wants to do it with some other logs! This assumes you're on Windows. I AIN'T NO WIZARD YO, ASK IF YOU NEED CLARIFICATION.
  2. Supplies needed:
  3.  
  4. Python - http://www.python.org/download/
  5. Easy_Install - http://pypi.python.org/pypi/setuptools
  6. irclog2html - http://pypi.python.org/pypi/irclog2html
  7.  
  8. grepWin - http://tools.tortoisesvn.net/grepWin.html
  9. or
  10. Ready to go grepWin (64-bit) http://www.multiupload.com/9UA6ZX2VEB
  11.  
  12. First off you're going to want your logs to look like this for the easiest results, the character before the "3" is the little midair L that mIRC uses to notate a color change:
  13.  
  14. [16:46] <@The_Arbiter> 3When we last left our heroes...
  15. 03[16:46] * Solarion (~chatzilla@Rizon-DB404C92.c3-0.129-ubr2.lnh-129.md.cable.rcn.com) has joined #actgame
  16. [16:50] <@The_Arbiter> --
  17. [16:51] <+Loesaelle> See what a little sensibility can get you, Hyrod? If we -had- gone ahead and gutted them, we wouldn't have...er...whatever that thing is that Haydn has.
  18. [16:51] <+Chomp> Certainly an interesting distraction.
  19. 06[16:51] * +Haydn sighs a bit.
  20. 06[16:51] * +Hyrod shrugs as he keeps walking, still heading north.
  21. [16:52] <+CodaTrill> Interesting, certainly...
  22. [16:52] <+Haydn> That... was quite an ordeal.
  23.  
  24. First you're going to want to get your Python install ready to use in the command prompt, because this is the harder part. Install Python and Easy_Install and get the irclog2html folder downloaded and extracted to a convenient location.
  25. Right click Computer in your start menu and go to
  26. Properties --> Advanced System Settings --> Environment Variables --> path http://i.imgur.com/YJH8g.png
  27. You will edit path to include ;C:\Python27;C:\Python27\Scripts directly after the previous entry in it. Note that this may be different depending on your version of Python, make sure it is directed to where your Python folder is located.
  28. You should now be able to open up command prompt and use Easy_Install to install irclog2html. Open up command prompt and navigate to where your irclog2html folder is located (An easy shortcut is holding shift and right clicking in the folder where your irclog2html folder is located, and selecting "Open command window here")
  29. You should now be able to type in "easy_install irclog2html"
  30. Now you will be able to use the command prompt command "irclog2html filename.log" to convert an irc log into a clusterfuck of an html file as long as you're in the right directory.
  31.  
  32. Now we have to deal with grepWin and formatting. Open up grepWin and get your "Search in" bar to be where your log files are. The presets I did are a bit dirty and need to be done in the right order so you might want to backup your log files just in case. This is what will be in your Presets button already if you downloaded the ready to go version: http://i.imgur.com/3RVE1.png
  33. You would want to change the "joins" preset to have "#channelname" instead of "#actgame"
  34. All the presets that start with "html" are ones you're not using yet, the other ones you will want to go through and double click and then hit replace. Note that "bold" must be done before "bold 2" or bold will not be done properly.
  35.  
  36. Now we will have to go through and convert each .log file into a .html file with irclog2html. You will be able to use the command prompt command "irclog2html filename.log" to convert an irc log into an html file as long as you're in the right directory. There's a batch command but it's sketchy and didn't work well for me. I just did them one at time by hitting up and quickly changing "irclog2html Hambol session 10.log" to "irclog2html Hambol session 11.log" and so on. http://i.imgur.com/dhSnL.png
  37.  
  38. Now you should have all your partially formatted .html files ready, and you want them in a folder of their own for easier grepWinning. Now is when you want to use all the html presets, making sure you do "html colors LAST" as your last find and replace. Unless you fucked shit up or didn't have proper logs you should now have fancy formatted HTML logs ready to go.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement