mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 00:23:12 +00:00
16 lines
432 B
Python
16 lines
432 B
Python
|
|
# __init__.py for this module
|
||
|
|
|
||
|
|
import Config,UrlData,OutputReader,sys
|
||
|
|
|
||
|
|
def checkUrls(config = Config.Configuration()):
|
||
|
|
config.log_init()
|
||
|
|
try:
|
||
|
|
while not config.finished():
|
||
|
|
if config.hasMoreUrls():
|
||
|
|
config.checkUrl(config.getUrl())
|
||
|
|
except KeyboardInterrupt:
|
||
|
|
config.finish()
|
||
|
|
config.log_endOfOutput()
|
||
|
|
sys.exit(1) # this is not good(tm)
|
||
|
|
config.log_endOfOutput()
|