【发布时间】:2017-10-16 07:45:11
【问题描述】:
蜘蛛的名字是quotes14,它在命令行中运行良好
即如果我从目录/var/www/html/sprojects/tutorial/ 运行scrapy crawl quotes14,它在命令行中可以正常工作。
我已将 scrapyd 作为守护进程运行。
我的爬虫文件在这里:/var/www/html/sprojects/tutorial/tutorial/spiders
我上面目录下有很多蜘蛛等文件,项目是/var/www/html/sprojects/tutorial/tutorial/
我试过了
curl http://localhost:6800/schedule.json -d project=tutorial -d spider=spiders/quotes14
curl http://localhost:6800/schedule.json -d project=/var/www/html/sprojects/tutorial/tutorial/tutorial -d spider=quotes14
curl http://localhost:6800/schedule.json -d project=/var/www/html/sprojects/tutorial/tutorial/ -d spider=quotes14
curl http://localhost:6800/schedule.json -d project=/var/www/html/sprojects/tutorial/tutorial/tutorial -d spider=spiders/quotes14
它要么说找不到项目,要么说没有找到蜘蛛
请帮忙
【问题讨论】:
-
在 ubuntu 14.04 上