如何在scrapinghub / splash docker安装中设置密码?

时间:2017-10-16 14:22:22

标签: scrapy splash scrapy-splash

我在ubuntu服务器上使用splash并按照说明安装docker(https://github.com/scrapy-plugins/scrapy-splash)。

docker run -p 8050: 8050 scrapinghub / splash

如何更改设置并设置用户名和密码?

2 个答案:

答案 0 :(得分:0)

最简单的方法是将AquariumQuery 1 : SELECT oid, typname, typelem, typdelim, typinput FROM pg_type Query 2 : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = ?::regclass AND a.attnum > ? AND NOT a.attisdropped ORDER BY a.attnum { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" } 选项一起使用。

How to run Splash in production?Splash FAQ中对此进行了描述。

答案 1 :(得分:0)

在集成Aquarium-Splash和Scrapy时,可以根据Scrapy的official documentation使用scrapy crawl选项在-a下传递用户名和密码。