
daryl552007
Novice
Jul 13, 2009, 12:41 AM
Post #1 of 9
(1591 views)
|
About trapping HTTP 404 errors
|
Can't Post
|
|
HI guys, I am working on a scraping script which would visit several pages. the problem is, there are some pages which dont exist and I get a 404 error. How do i trap this error and print a custom message on my terminal? like when the page is there i would print "page found" on my terminal, else "no page found". Thanks in advance guys.
|