Scrapy飞溅服务器没有通过docker运行开始

在这里安装docker,scrapyjs和splash alexce的说明。

然后,运行docker run -p 8050:8050 scrapinghub/splash ,我得到这个输出:

 2016-05-08 17:17:45+0000 [-] Log opened. 2016-05-08 17:17:45.978866 [-] Splash version: 2.1 2016-05-08 17:17:45.979553 [-] Qt 5.5.1, PyQt 5.5.1, WebKit 538.1, sip 4.17, Twisted 16.1.1, Lua 5.2 2016-05-08 17:17:45.980138 [-] Python 3.4.3 (default, Oct 14 2015, 20:28:29) [GCC 4.8.4] 2016-05-08 17:17:45.980401 [-] Open files limit: 1048576 2016-05-08 17:17:45.981020 [-] Can't bump open files limit 2016-05-08 17:17:46.086232 [-] Xvfb is started: ['Xvfb', ':1', '-screen', '0', '1024x768x24'] 2016-05-08 17:17:46.161902 [-] proxy profiles support is enabled, proxy profiles path: /etc/splash/proxy-profiles 2016-05-08 17:17:46.260357 [-] verbosity=1 2016-05-08 17:17:46.260607 [-] slots=50 2016-05-08 17:17:46.261170 [-] argument_cache_max_entries=500 2016-05-08 17:17:46.262476 [-] Web UI: enabled, Lua: enabled (sandbox: enabled) 2016-05-08 17:17:46.264565 [-] Site starting on 8050 2016-05-08 17:17:46.265203 [-] Starting factory <twisted.web.server.Site object at 0x7f270ec81e10> 

它挂在那里。 我尝试基于这里的指令进行故障排除(重新安装docker,validationvm正在运行,重新生成证书,设置env),但什么也没有。

我的设置文件和蜘蛛

当运行spider时没有meta=参数,在yield scrapy.Request' call within ,蜘蛛运行正常(除了dynamic字段没有被捕获),所以我不确定这是否是docker问题溅。

提前致谢。

当用Docker运行Splash时,控制台起初就会“挂在那里”。 Splash正在通过其中一个端点等待请求。

 $ sudo docker run -p 8050:8050 scrapinghub/splash 2016-05-09 10:21:42+0000 [-] Log opened. 2016-05-09 10:21:42.773541 [-] Splash version: 2.1 2016-05-09 10:21:42.774298 [-] Qt 5.5.1, PyQt 5.5.1, WebKit 538.1, sip 4.17, Twisted 16.1.1, Lua 5.2 2016-05-09 10:21:42.774453 [-] Python 3.4.3 (default, Oct 14 2015, 20:28:29) [GCC 4.8.4] 2016-05-09 10:21:42.774632 [-] Open files limit: 1048576 2016-05-09 10:21:42.774842 [-] Can't bump open files limit 2016-05-09 10:21:42.879868 [-] Xvfb is started: ['Xvfb', ':1', '-screen', '0', '1024x768x24'] 2016-05-09 10:21:43.072351 [-] proxy profiles support is enabled, proxy profiles path: /etc/splash/proxy-profiles 2016-05-09 10:21:43.214478 [-] verbosity=1 2016-05-09 10:21:43.214617 [-] slots=50 2016-05-09 10:21:43.214703 [-] argument_cache_max_entries=500 2016-05-09 10:21:43.215195 [-] Web UI: enabled, Lua: enabled (sandbox: enabled) 2016-05-09 10:21:43.217494 [-] Site starting on 8050 2016-05-09 10:21:43.217635 [-] Starting factory <twisted.web.server.Site object at 0x7f529d0fee48> 

要testingSplash是否正常运行,请尝试使用其Web UI: http:// localhost:8050 /

你应该看到像这样的东西:

在这里输入图像说明

然后你可以尝试input一些URL并点击“渲染我”