【问题标题】:Scrapy splash connection refused on localhost:8050本地主机上的 Scrapy splash 连接被拒绝:8050
【发布时间】:2019-08-14 02:20:36
【问题描述】:

我已经按照 windows 8.1 中的官方文档安装了 scrapy-splash,但是当我访问 http://localhost:8050/ 时,我收到连接被拒绝错误

运行: docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash

这是一个 docker cmd 日志:

2019-08-14 02:09:17+0000 [-] Log opened.
2019-08-14 02:09:17.882305 [-] Splash version: 3.3.1
2019-08-14 02:09:17.886323 [-] Qt 5.9.1, PyQt 5.9.2, WebKit 602.1, sip 4.19.4, Twisted 18.9.0, Lua 5.2
2019-08-14 02:09:17.888056 [-] Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]
2019-08-14 02:09:17.891068 [-] Open files limit: 1048576
2019-08-14 02:09:17.892217 [-] Can't bump open files limit
2019-08-14 02:09:18.008683 [-] Xvfb is started: ['Xvfb', ':504837395', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2019-08-14 02:09:18.572706 [-] proxy profiles support is enabled, proxy profiles path: /etc/splash/proxy-profiles
2019-08-14 02:09:18.575273 [-] memory cache: enabled, private mode: enabled, js cross-domain access: disabled
2019-08-14 02:09:19.282557 [-] verbosity=1, slots=20, argument_cache_max_entries=500, max-timeout=90.0
2019-08-14 02:09:19.291644 [-] Web UI: enabled, Lua: enabled (sandbox: enabled)
2019-08-14 02:09:19.297131 [-] Site starting on 8050
2019-08-14 02:09:19.299929 [-] Starting factory <twisted.web.server.Site object at 0x7fe5346cbcc0>
2019-08-14 02:09:19.302557 [-] Server listening on http://0.0.0.0:8050

【问题讨论】:

  • 您是否尝试过更改端口,因为 docker 映像适用于我,因此很难复制错误
  • 可以,但是一直监听8050,不知道改端口的正确方法。我编辑了我的帖子,希望它可以帮助你
  • 它现在可以工作了

标签: python docker scrapy scrapy-splash


【解决方案1】:

它现在正在工作。就我而言,它不适用于 localhost,因为也许我还安装了 apache 服务器。但是当我使用带有端口 8050 的 docker 默认机器 IP 时,它正在工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-03-14
    • 2014-05-31
    • 2016-01-27
    • 2015-12-12
    • 2015-09-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多