mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-29 20:20:30 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@5 e7d03fd6-7b0d-0410-9947-9c21f3af8025
15 lines
432 B
Python
15 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()
|