mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-19 15:30:29 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1288 e7d03fd6-7b0d-0410-9947-9c21f3af8025
13 lines
475 B
Python
13 lines
475 B
Python
# -*- coding: iso-8859-1 -*-
|
|
import os, linkcheck
|
|
config = linkcheck.Config.Configuration()
|
|
config.addLogger('test', linkcheck.test_support.TestLogger)
|
|
config['recursionlevel'] = 1
|
|
config['log'] = config.newLogger('test')
|
|
config["anchors"] = True
|
|
config["verbose"] = True
|
|
config.setThreads(0)
|
|
for filename in ('frames.html',):
|
|
url = os.path.join("test", "html", filename)
|
|
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0, config))
|
|
linkcheck.checkUrls(config)
|