Giter Site home page Giter Site logo

ircanalysis's Introduction

IRCAnalysis

IRC Analysis Tool

Usage example:

acs@lenovix:~/devel/IRCAnalysis$ mysqladmin -u root create ircdb
acs@lenovix:~/devel/IRCAnalysis$ ./irc_analysis.py -d ircdb --channel test --format plain --dir=test/data/
...
Total messages: 5552

A table irclog is created in the "ircdb" with all the information parsed from irc channel.

mysql> select count(*) from irclog;
+----------+
| count(*) |
+----------+
|     5552 |
+----------+

ircanalysis's People

Contributors

dicortazar avatar sduenas avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ircanalysis's Issues

Error 'NoneType' object has no attribute 'find_all'

I found the following error analyzing these logs: http://irc-logs.puppetlabs.com/

Error parsing puppet/#puppet-2010-02-27.log.html file: 'NoneType' object has no attribute 'find_all'
Error parsing puppet/#puppet-2010-02-28.log.html file: 'NoneType' object has no attribute 'find_all'
Error parsing puppet/#puppet-2010-03-01.log.html file: 'NoneType' object has no attribute 'find_all'
Error parsing puppet/#puppet-2010-03-02.log.html file: 'NoneType' object has no attribute 'find_all'
Error parsing puppet/#puppet-2010-03-03.log.html file: 'NoneType' object has no attribute 'find_all'
Error parsing puppet/#puppet-2010-03-04.log.html file: 'NoneType' object has no attribute 'find_all'
Error parsing puppet/#puppet-2010-03-05.log.html file: 'NoneType' object has no attribute 'find_all'

Error reading IRC logs of the last two months

Log are correctly parsed until October, where the errors appear.

This is the command used:

/usr/local/bin/irc_analysis.py --db-user="root" --db-password=*** --database="lcanas_irc_puppetlabs_2338" --dir="puppet" --channel="puppet" --format html

And this is the new error:

/usr/local/lib/python2.7/dist-packages/pyircanalysis/database.py:62: Warning: Table 'irclog' already exists
  self.cursor.execute(query)
/usr/local/lib/python2.7/dist-packages/pyircanalysis/database.py:69: Warning: Table 'channels' already exists
  self.cursor.execute(query)

Error parsing puppet/#puppet-2008-03-18.log.html file: 'utf8' codec can't decode byte 0xcf in position 123213: invalid continuation byte
Error parsing puppet/#puppet-2013-10-02.log.html file: 'NoneType' object has no attribute 'replace'
Error parsing puppet/#puppet-2013-10-03.log.html file: 'NoneType' object has no attribute 'replace'
Error parsing puppet/#puppet-2013-10-04.log.html file: 'NoneType' object has no attribute 'replace'
Error parsing puppet/#puppet-2013-10-05.log.html file: 'NoneType' object has no attribute 'replace'
Error parsing puppet/#puppet-2013-10-06.log.html file: 'NoneType' object has no attribute 'replace'
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.