加入scrapy items.py支持

This commit is contained in:
marvzhang
2020-02-21 15:07:54 +08:00
parent 7d5dc27264
commit 38af9e9173
8 changed files with 525 additions and 180 deletions

View File

@@ -6,7 +6,12 @@ type SpiderType struct {
}
type ScrapySettingParam struct {
Key string
Value interface{}
Type string
Key string `json:"key"`
Value interface{} `json:"value"`
Type string `json:"type"`
}
type ScrapyItem struct {
Name string `json:"name"`
Fields []string `json:"fields"`
}