I think that implying the spider is actually able to recognize itself is a little too far. It would require a level of awareness comparable to that of apes and dolphins. Not even dogs are able to recognize themselves when put in front of a mirror.
http://io9.com/5969515/corvids-the-birds-who-think-like-huma...