Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
woann committed Dec 26, 2018
1 parent bde6d4b commit c55a00e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controllers/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ type CrawlerController struct {

func (this *CrawlerController)Index(){
this.EnableRender = false //关闭模板渲染
//var urls = []string{"https://segmentfault.com/t/golang","https://segmentfault.com/t/php","https://segmentfault.com/t/laravel"}
//for _,v := range urls{
// go segmentfault(v)
//}
var juejinUrls = []string{"https://juejin.im/welcome/backend"}
var urls = []string{"https://segmentfault.com/t/golang","https://segmentfault.com/t/php","https://segmentfault.com/t/laravel"}
for _,v := range urls{
go segmentfault(v)
}
var juejinUrls = []string{"https://juejin.im/welcome/backend","https://juejin.im/welcome/article"}
for _,v := range juejinUrls{
go juejin(v)
}
Expand Down

0 comments on commit c55a00e

Please sign in to comment.