最近在用Scrapy抓取一个网站数据,其中有个页面需要执行js脚本才能加载,所以需要用到Splash。

官网地址:https://splash.readthedocs.io/en/stable/install.html#linux-docker

安装

  1. Install Docker

  2. Pull the image:

    $ sudo docker pull scrapinghub/splash
    
  3. Start the container:

    $ sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash
    
  4. Splash is now available at 0.0.0.0 at ports 8050 (http) and 5023 (telnet).

测试

  打开浏览器输入http://192.168.5.61:8050

Centos7安装Splash

 

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-02-01
  • 2022-03-01
  • 2021-11-15
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2021-04-28
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案