From 7b86d35a0f4347e27fd554a13105ef39d189f317 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Sat, 23 Nov 2019 18:16:24 +0800 Subject: [PATCH] code cleanup --- backend/go.mod | 1 + backend/main.go | 1 - backend/template/Spiderfile | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/go.mod b/backend/go.mod index 428c2fd3..d59b6d41 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -17,4 +17,5 @@ require ( github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 github.com/spf13/viper v1.4.0 gopkg.in/go-playground/validator.v9 v9.29.1 + gopkg.in/yaml.v2 v2.2.2 ) diff --git a/backend/main.go b/backend/main.go index c9e4805d..f4ec47a1 100644 --- a/backend/main.go +++ b/backend/main.go @@ -110,7 +110,6 @@ func main() { if model.IsMaster() { // 中间件 app.Use(middlewares.CORSMiddleware()) - //app.Use(middlewares.AuthorizationMiddleware()) anonymousGroup := app.Group("/") { anonymousGroup.POST("/login", routes.Login) // 用户登录 diff --git a/backend/template/Spiderfile b/backend/template/Spiderfile index 7004bac5..b5a9b4dc 100644 --- a/backend/template/Spiderfile +++ b/backend/template/Spiderfile @@ -1,9 +1,9 @@ version: 0.4.0 -startUrl: "https://baidu.com/s?wd=crawlab" +start_url: "https://baidu.com/s?wd=crawlab" stages: stage1: list: false # default: false - css: "#content_left > .result" + list_css: "#content_left > .result" fields: - name: "title" css: "a"