A framework for crawling webpages