How do i check ads/images present on the web page

I need to check all the ads/images present on the webpage.They all are
coming from different locations,need to verify ,all images are loading
fine,no 404/302 error, also need to check the magic no is coming
correctly for that image.

you can use http://fanhouse.com as a input url.

Thanks,

Yogesh

Is this a quiz or a query?

Get yourself hpricot, do some scraping using it on irb, and determine
some
basic heuristics/regexes for figuring out what css paths might refer to
ads
etc.

Jayanth