mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-21 00:10:24 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@933 e7d03fd6-7b0d-0410-9947-9c21f3af8025
16 lines
314 B
Python
Executable file
16 lines
314 B
Python
Executable file
#!/usr/bin/env python
|
|
# -*- coding: iso-8859-1 -*-
|
|
import sys, os
|
|
sys.path.insert(0, os.getcwd())
|
|
from linkcheck.parser.htmllib import HtmlPrinter
|
|
|
|
def _main():
|
|
#pass
|
|
file = sys.argv[1]
|
|
data = open(file).read()
|
|
p = HtmlPrinter()
|
|
p.feed(data)
|
|
p.flush()
|
|
|
|
if __name__=='__main__':
|
|
_main()
|