Simple C# console application that will crawl the given webpage for broken image-tags and hyperlinks. The result of this will be written to output. Right now we have these outputs: console, csv, slack.
Because it could be useful to know when a webpage you have responsibility for displays broken links to it's users. I have this running continuously, but you don't have to. For instance, after upgrading your CMS, changing database-scheme, migrating content etc, it can be relevant to know if this did or did not not introduce broken links. Just run this tool one time and you will know exactly how many links are broken, where they link to, and where they are located.
AppVeyor is used as CI, so when code is pushed to this repo the solution will get built and all tests will be run.
||Base url for site to crawl|
||HTTP status codes that are considered "successful". Example: "1xx,2xx,302,303"|
||If true, <img src=".." will be checked|
||Regex to match valid urls|
||Url to the slack webhook. If empty, it will not try to send message to slack|
||Custom name for slack bot|
||Custom Emoji for slack bot|
||If true, only broken links will be reported to output.|
||String format message that will be sent to slack|
||File path for the CSV file|
||Whether to overwrite or append (if file exists)|
||Delimiter between columns in the CSV file (like ',' or ';')|
||If true, a summary will be printed when all links have been checked.|
Ther also is a
<outputProviders> that controls what output should be used.
Output to file
Output to slack
##How I use it I have it running as an Webjob in Azure, scheduled every 4 days. It will notify the slack-channel where the editors of the website dwells.
Read more about Azure Webjobs: https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/
Read more about Slack incoming webhooks: https://api.slack.com/incoming-webhooks