所以我正在运行此命令
scrapy crawl dmoz -o items.json
我只是不明白什么意思。我已经研究过,但无法找到它。
这是否意味着输出?我不确定。
谢谢!
答案 0 :(得分:3)
我运行scrapy crawl -h
来获取选项:
--output=FILE, -o FILE dump scraped items into FILE (use - for stdout)
完整的帮助:
Run a spider
Options
=======
--help, -h show this help message and exit
-a NAME=VALUE set spider argument (may be repeated)
--output=FILE, -o FILE dump scraped items into FILE (use - for stdout)
--output-format=FORMAT, -t FORMAT
format to use for dumping items with -o
Global Options
--------------
--logfile=FILE log file. if omitted stderr will be used
--loglevel=LEVEL, -L LEVEL
log level (default: DEBUG)
--nolog disable logging completely
--profile=FILE write python cProfile stats to FILE
--lsprof=FILE write lsprof profiling stats to FILE
--pidfile=FILE write process ID to FILE
--set=NAME=VALUE, -s NAME=VALUE
set/override setting (may be repeated)
--pdb enable pdb on failure