Tuesday 15 May 2012

c# - Verify HTML links in a large directory structure on my local harddrive -



c# - Verify HTML links in a large directory structure on my local harddrive -

i writing quick (hopefully) c# app crawl through bundle on local harddrive needs open every html file in tree , verify every link within files points valid. can think of bunch of ways of doing low level grep-ing of hrefs , dir/file scanning opening web browser , catching 404 exceptions. question more matter of efficiency has happen across ton of files. method, local files only, should using?

don't grep, that's error-prone. don't open web browser, that's hacky , slow.

i parse html existing library, extract hrefs, convert file paths , check existence of files system.io.file.exists.

c# html optimization

No comments:

Post a Comment