Centos7安装Splash
前言
最近在用Scrapy抓取一个网站数据,其中有个页面需要执行js脚本才能加载,所以需要用到Splash。
官网地址:https://splash.readthedocs.io/en/stable/install.html#linux-docker
安装
-
Install Docker.
-
Pull the image:
$ sudo docker pull scrapinghub/splash
-
Start the container:
$ sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash
-
Splash is now available at 0.0.0.0 at ports 8050 (http) and 5023 (telnet).
测试
打开浏览器输入http://192.168.5.61:8050