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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Only broken | Boolean | No | true | List only failing links instead of every link. |
| Same site only | Boolean | No | false | Check only links to the page's own host. |
| Maximum links | Number | No | 200 | Safety limit on links checked. |
| Wait up to (milliseconds) | Number | No | 10000 | Time allowed for each link, in milliseconds. |
| Session | String | No | browser | Session name. |
| Address (URL) | String | No | Page to check, by its address, instead of the browser's current page (no browser needed). | |
| Scope | String | No | page | page: the links of that page; site: also follow the site's own pages (same host) and check their links. |
| Maximum pages | Number | No | 50 | With scope site: at most this many pages are read. |
| CSV path | File | No | Also save the list to this CSV file. | |
| Append | Boolean | No | false | Add to the CSV file if it exists, instead of replacing it. |
| Encoding | String | No | UTF-8 | CSV file encoding. |
| Threads | Number | No | 10 | How many links are checked at the same time (1-50). |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: url, status (0 when unreachable), ok, error. |
| broken_count | Number | Number of links that failed. |
| checked_count | Number | Number of distinct links checked. |