linkcheck.plugins.parseword

Parse hyperlinks in Word files.

Functions

close_word_app(app)

Close Word application object.

close_wordfile(doc)

Close word file.

constants(name)

Helper to return constants.

get_line_number(doc, wrange)

Get line number for given range object.

get_temp_filename(content)

Get temporary filename for content to parse.

get_word_app()

Return open Word.Application handle, or None if Word is not available on this system.

has_word()

Determine if Word is available on the current system.

init_win32com()

Initialize the win32com.client cache.

open_wordfile(app, filename)

Open given Word file with application object.

Classes

WordParser(config)

Word parsing plugin.

class linkcheck.plugins.parseword.WordParser(config)[source]

Bases: _ParserPlugin

Word parsing plugin.

Check for Word.

applies_to(url_data, pagetype=None)[source]

Check for Word pagetype.

check(url_data)[source]

Parse Word data.

linkcheck.plugins.parseword.close_word_app(app)[source]

Close Word application object.

linkcheck.plugins.parseword.close_wordfile(doc)[source]

Close word file.

linkcheck.plugins.parseword.constants(name)[source]

Helper to return constants. Avoids importing win32com.client in other modules.

linkcheck.plugins.parseword.get_line_number(doc, wrange)[source]

Get line number for given range object.

linkcheck.plugins.parseword.get_temp_filename(content)[source]

Get temporary filename for content to parse.

linkcheck.plugins.parseword.get_word_app()[source]

Return open Word.Application handle, or None if Word is not available on this system.

linkcheck.plugins.parseword.has_word()[source]

Determine if Word is available on the current system.

linkcheck.plugins.parseword.init_win32com()[source]

Initialize the win32com.client cache.

linkcheck.plugins.parseword.open_wordfile(app, filename)[source]

Open given Word file with application object.