Overview
- Full name
docker.io/whalebothelmsman/splash- Registry
- docker.io
- Namespace
- whalebothelmsman
- Repository
- splash
- Cached tags
- 1
- Last synced
- 07/06/2026, 06:40 PM
- Topics
Introduction
Splash 无头浏览器渲染服务镜像,为 Scrapy/Crawler 提供 JavaScript 执行与 DOM 快照,解决动态页面抓取与 SPA 预渲染需求。
Details
whalebothelmsman/splash 基于 QtWebKit 暴露 HTTP API,爬虫通过 /render.html 传入 URL 与 wait 参数获取完整 HTML 或 PNG/HAR。与 Playwright 服务相比部署更轻、接口更简单,但对现代前端框架兼容性弱于 Chromium 方案。适合中小规模采集与内网监控探针;生产应限制并发、设置请求超时与 IP 白名单,避免被当作开放代理滥用。
快速启动
docker run -d --name splash \
-p 8050:8050 \
docker.io/whalebothelmsman/splash:latest
推荐实践
docker run -d --name splash \
--restart unless-stopped \
-p 8050:8050 \
-e SPLASH_MAX_TIMEOUT=90 \
-e SPLASH_SLOTS=10 \
-v splash-filters:/etc/splash/filters \
docker.io/whalebothelmsman/splash:3.5
核心参数说明
-p 8050:8050— Splash HTTP API 端口-e SPLASH_MAX_TIMEOUT— 单页渲染最长等待秒数-e SPLASH_SLOTS— 并发渲染槽位数-v splash-filters:/etc/splash/filters— 自定义 Lua 过滤脚本--restart unless-stopped— 采集链路不中断- 固定 tag — 与 Scrapy-Splash 中间件版本对齐
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: splash
spec:
replicas: 3
selector:
matchLabels:
app: splash
template:
metadata:
labels:
app: splash
spec:
containers:
- name: splash
image: docker.io/whalebothelmsman/splash:3.5
ports:
- containerPort: 8050
env:
- name: SPLASH_SLOTS
value: "10"
---
apiVersion: v1
kind: Service
metadata:
name: splash
spec:
selector:
app: splash
ports:
- port: 8050
targetPort: 8050
无状态可 HPA 按 CPU 扩缩;爬虫 Pod 经 ClusterIP 调用,Ingress 勿公网暴露以免成为开放渲染代理。
Latest tags (20)
View all 1 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/whalebothelmsman/splash :latest | linux/amd64 | 2020/05/29 23:00 | 692.6 MB | sha256:8b829651a4f5… |