A spider is an automated program of search engine which is used to fetch data from the website.This process is called as crawling.
During crawling spiders or crawlers find whether the content of site is appropriate according to SEO. Only after clearing this stage a website can be indexed into the database of search engines.