extract crawling code into method