Trying to write crawl script