mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-29 04:00:34 +00:00
16 lines
273 B
Python
16 lines
273 B
Python
|
|
#!/usr/bin/env python
|
||
|
|
import sys
|
||
|
|
sys.path.insert(0, ".")
|
||
|
|
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()
|