rewrite a class for the original function CrawlOnePage