Skip to main content

Find broken links

Collect the links on the current page (or on a page or whole site given by its address) and check each one, reporting those that fail or return an HTTP error (links to files, file:, are looked up on disk); optionally save the list to a CSV file.

Command in the Browser toolkit · id ooa.browser/find_broken_links · 12 inputs, 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Only brokenBooleanNotrueList only failing links instead of every link.
Same site onlyBooleanNofalseCheck only links to the page's own host.
Maximum linksNumberNo200Safety limit on links checked.
Wait up to (milliseconds)NumberNo10000Time allowed for each link, in milliseconds.
SessionStringNobrowserSession name.
Address (URL)StringNoPage to check, by its address, instead of the browser's current page (no browser needed).
ScopeStringNopagepage: the links of that page; site: also follow the site's own pages (same host) and check their links.
Maximum pagesNumberNo50With scope site: at most this many pages are read.
CSV pathFileNoAlso save the list to this CSV file.
AppendBooleanNofalseAdd to the CSV file if it exists, instead of replacing it.
EncodingStringNoUTF-8CSV file encoding.
ThreadsNumberNo10How many links are checked at the same time (1-50).

Outputs​

OutputTypeWhat it is
tableTableColumns: url, status (0 when unreachable), ok, error.
broken_countNumberNumber of links that failed.
checked_countNumberNumber of distinct links checked.