func TestP2p(t *testing.T) { crawlers.BaiduCrawler() crawlers.Rong360Crawler() // crawlers.Rong360bbsCrawler() }
func DailyTaskInit(minutes int) { beego.Info("Start Daily Task") timer := time.NewTicker(time.Minute * time.Duration(minutes)) for { select { case <-timer.C: //crawlers.BaiduCrawler() crawlers.Rong360Crawler() crawlers.Rong360bbsCrawler() } } }