3 This file is a part of Bookmarks database and Internet robot.
7 __author__ = "Oleg Broytman <phd@phdru.name>"
8 __copyright__ = "Copyright (C) 1997-2014 PhiloSoft Design"
9 __license__ = "GNU GPL"
11 __all__ = ['parse_html', 'parse_filename', 'main']
14 from .bkmk_parse_html import parse_html, parse_filename
19 from .bkmk_parse_html import universal_charset
23 filename = sys.argv[1]
26 filename = sys.argv[1]
27 charset = universal_charset
29 sys.exit("Usage: main filename [charset]")
31 parser = parse_filename(filename, charset, log=lambda s: sys.stdout.write(s + '\n'))
32 print " refresh:", parser.refresh
33 print " icon :", parser.icon