예제 #1
0
func TestP2p(t *testing.T) {

	crawlers.BaiduCrawler()

	crawlers.Rong360Crawler()

	//		crawlers.Rong360bbsCrawler()

}
예제 #2
0
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()
		}
	}
}