i want parse websites , list of pages on current domain, a:
sample.com/
sample.com/page1/
sample.com/page2.html
but can't find samples, how build sitemap or tree using c# , asp.net
i found 1 example: http://www.codeproject.com/articles/13486/a-simple-crawler-using-c-sockets
but can't understand, how author use it
if(directory.exists(struri) == true) { //some code directoryinfo dir = new directoryinfo(foldername); fileinfo[] fia = dir.getfiles("*.txt"); }
when use code, result in if
false
. when use
getfiles
function
i have exception:
uri formats not supported
who have ideas?
remember on web ambient, cant read files way, need use
server.mappath(url)
to physical address files, can loop using.
Comments
Post a Comment