从https://github.com/scrapinghub/portia#running-a-portia-spider如何开始运行portia蜘蛛?
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
我对portia非常陌生,所以我很在意怎么做。任何人都可以给我一个我应该为PROJECT_PATH写什么的样本?我目前通过无业游民使用portia。
要回答这个问题 - 你能举例说明运行蜘蛛的工作原理吗? – user7294900 2018-01-23 06:14:37
请参阅https://stackoverflow.com/help/how-to-answer“请在链接附近添加上下文” – user7294900 2018-01-23 06:21:51
请参阅[链接](https://github.com/siegfried415/portia-dashboard/blob/master /docs/getting-started.rst)。 (感谢您的提示,这是我第一次使用stackoverflow)。 – siegfried415 2018-01-23 06:29:46