code cleanup

This commit is contained in:
marvzhang
2019-11-23 18:16:24 +08:00
parent 607ce70f5c
commit 7b86d35a0f
3 changed files with 3 additions and 3 deletions

View File

@@ -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
)

View File

@@ -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) // 用户登录

View File

@@ -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"