mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-24 09:50:23 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@44 e7d03fd6-7b0d-0410-9947-9c21f3af8025
15 lines
439 B
Python
15 lines
439 B
Python
# __init__.py for this module
|
|
|
|
import Config,UrlData,OutputReader,sys,lc_cgi
|
|
|
|
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()
|