mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-19 23:40:29 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@392 e7d03fd6-7b0d-0410-9947-9c21f3af8025
13 lines
394 B
Python
13 lines
394 B
Python
import os, sys
|
|
import linkcheck
|
|
config = linkcheck.Config.Configuration()
|
|
config['recursionlevel'] = 1
|
|
config['log'] = config.newLogger('test')
|
|
config["anchors"] = 1
|
|
config["verbose"] = 1
|
|
config.disableThreading()
|
|
htmldir = "test/html"
|
|
for file in ('https.html',):
|
|
url = os.path.join(htmldir, file)
|
|
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
|
linkcheck.checkUrls(config)
|