int main(int argc, char* argv[]) { Spider spider; SpiderInterfaceConfig* interfaceConfig; interfaceConfig =spider.GetSpiderInterfaceConfig(); MainUrlRule mainRule; ImageUrlRule imageRule; OnlyPageRule onlyPageRule; ImageSave imageSave; DoPageProcess pageProcess; ErrorNotify errorNotify; interfaceConfig->AddUrlFilter(&mainRule); interfaceConfig->AddUrlFilter(&onlyPageRule); interfaceConfig->SetErrorNotify(&errorNotify); // interfaceConfig.SetFileProcessMethod(&imageSave); // interfaceConfig.SetPageProcessMethod(&pageProcess); spider.StartSpider("www.920mm.com/DGC"); printf("输入任意字符退出爬虫。。。\n"); getchar(); spider.EndSpider(); }