3 This file is a part of Bookmarks database and Internet robot.
7 from __future__ import print_function
8 from .bkmk_parse_html import parse_filename
11 __author__ = "Oleg Broytman <phd@phdru.name>"
12 __copyright__ = "Copyright (C) 2014-2023 PhiloSoft Design"
13 __license__ = "GNU GPL"
18 from .bkmk_parse_html import universal_charset
22 filename = sys.argv[1]
25 filename = sys.argv[1]
26 charset = universal_charset
28 sys.exit("Usage: main filename [charset]")
30 parser = parse_filename(filename, charset,
31 log=lambda s: sys.stdout.write(s + '\n'))
32 print(" charset :", parser.charset)
33 print(" meta_charset:", parser.meta_charset)
34 print(" title :", parser.title)
35 print(" refresh :", parser.refresh)
36 print(" icon :", parser.icon)
39 if __name__ == '__main__':