linkcheck

Main package for link checking.

Functions

get_link_pat(arg[, strict])

Get a link pattern matcher for intern/extern links.

init_i18n()

Initialize i18n with the configured locale dir.

module_path()

Return absolute directory of system executable.

Exceptions

LinkCheckerError

Exception to be raised on linkchecker-specific check errors.

LinkCheckerInterrupt

Used for testing.

exception linkcheck.LinkCheckerError[source]

Bases: Exception

Exception to be raised on linkchecker-specific check errors.

exception linkcheck.LinkCheckerInterrupt[source]

Bases: Exception

Used for testing.

Get a link pattern matcher for intern/extern links. Returns a compiled pattern and a negate and strict option.

Parameters:
  • arg (string) – pattern from config

  • strict (bool) – if pattern is to be handled strict

Returns:

dictionary with keys ‘pattern’, ‘negate’ and ‘strict’

Return type:

dict

Raises:

re.error on invalid regular expressions

linkcheck.init_i18n()[source]

Initialize i18n with the configured locale dir. The environment variable LOCPATH can also specify a locale dir.

Returns:

None

linkcheck.module_path()[source]

Return absolute directory of system executable.

Modules

ansicolor

ANSI Color definitions and functions.

better_exchook2

bookmarks

cache

Store and provide cached data during checking in a thread-safe manner.

checker

Main functions for link checking.

cmdline

Utility functions suitable for command line clients.

colorama

command

configuration

Store metadata and options.

containers

Special container classes.

cookies

Parsing of cookies.

data

decorators

Simple decorators (usable in Python >= 2.4).

director

Management of checking a queue of links with several threads.

dummy

Dummy objects.

fileutil

File and path utilities.

ftpparse

Python implementation of a part of Dan Bernstein's ftpparse library.

htmlutil

HTML utils

httputil

i18n

Application internationalization support.

lc_cgi

Functions used by the WSGI script.

loader

Functions to load plugin modules.

lock

Locking utility class.

log

Logging and debug functions.

logconf

Logging configuration

logger

Output logging support for different formats.

memoryutil

Memory utilities.

mimeutil

File and path utilities.

network

parser

Main functions for link parsing

plugins

Module for plugin management.

robotparser2

Robots.txt parser.

socketutil

strformat

Various string utility functions.

threader

Support for managing threads.

trace

url

Functions for parsing and matching URL strings.