修复CLI上传Scrapy爬虫无法点击运行问题

This commit is contained in:
marvzhang
2020-03-23 14:03:44 +08:00
parent e882e60539
commit d8dfab13c2

View File

@@ -49,6 +49,7 @@ func (s *SpiderSync) CheckIsScrapy() {
return
}
s.Spider.IsScrapy = utils.Exists(path.Join(s.Spider.Src, "scrapy.cfg"))
s.Spider.Cmd = "scrapy crawl"
if err := s.Spider.Save(); err != nil {
log.Errorf(err.Error())
debug.PrintStack()