来自https://github.com/scrapinghub/portia#running-a-portia-spider的给定语法
portiacrawl PROJECT_PATH SPIDER_NAME
我试着跑步
portiacrawl D:/portia-master/slyd/data/projects/darkwoods example
portiacrawl slyd/data/projects/darkwoods example
portiacrawl slyd/data/projects/darkwoods
但他们给了我同样的帮助信息。
Usage: portiacrawl <project dir/project zip> [spider] [options]
Allow to easily run slybot spiders on console. If spider is not given, print a
list of available spiders inside the project
Options:
-h, --help show this help message and exit
--settings=SETTINGS Give specific settings module (must be on python path)
--logfile=LOGFILE Specify log file
-a NAME=VALUE Add spider arguments
-s NAME=VALUE Add extra scrapy settings
-o FILE, --output=FILE
dump scraped items into FILE (use - for stdout)
-t FORMAT, --output-format=FORMAT
format to use for dumping items with -o (default:
jsonlines)
-v, --verbose more verbose
我对波西亚很陌生,所以我很困惑该怎么做。谁能给我一个我应该为 PROJECT_PATH 写什么的样本?我目前正在通过 vagrant 使用 portia。