spider-admin-pro icon indicating copy to clipboard operation
spider-admin-pro copied to clipboard

运行统计"/stats/list" no data collected on windows

Open pinkonio opened this issue 3 years ago • 1 comments

ScrapydUtil.parse_log_file raised err:

venv\lib\site-packages\scrapy_util\utils.py", line 15, in parse_log_file
    _, project, spider, filename = log_file.split('/')
ValueError: not enough values to unpack (expected 4, got 1)

when you run on windows then change line 15 : "log_file.split('/')" to log_file.split(os.sep) , and "import os" on the top.

pinkonio avatar Jul 25 '21 10:07 pinkonio

thank you

mouday avatar Sep 06 '22 01:09 mouday