]> git.phdru.name Git - bookmarks_db.git/blob - parse_html/bkmk_ph_util.py
400c8dabc4a34ce48bb36766e8b3c3d0910a1879
[bookmarks_db.git] / parse_html / bkmk_ph_util.py
1 """HTML parsers utilities
2
3 This file is a part of Bookmarks database and Internet robot.
4 """
5
6 __author__ = "Oleg Broytman <phd@phdru.name>"
7 __copyright__ = "Copyright (C) 2010-2012 PhiloSoft Design"
8 __license__ = "GNU GPL"
9
10 __all__ = ['HTMLParser']
11
12
13 from HTMLParser import HTMLParser
14
15 class HTMLParser(HTMLParser):
16    def __init__(self, charset, meta_charset, title, refresh, icon):
17       object.__init__(self)
18       self.charset = charset
19       self.meta_charset = meta_charset
20       self.title = title
21       self.refresh = refresh
22       self.icon = icon