Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 856 Bytes

File metadata and controls

27 lines (22 loc) · 856 Bytes

ScreenShot And Split Picture

Based on the Java language, selenium and chromedriver implement web screenshot saving and image cutting into 10 pieces

Usage

  1. maven clean package
  2. example
java -jar screenshot-auto-0.0.1-SNAPSHOT.jar ${url} ${chromedriver_path} ${save_path} 

${url}:You want screenshots of the page

${chromedriver_path}:The path of the chromedriver

${save_path}:Save to the folder path

网页截图和切割图片

基于java语言,还有selenium和chromedriver实现网页截图和切割图片

使用方法

  1. maven打包 2.执行脚本如下
java -jar screenshot-auto-0.0.1-SNAPSHOT.jar ${url} ${chromedriver_path} ${save_path} 

${url}:截图的url

${chromedriver_path}:chromedriver驱动路径

${save_path}:保存的路径(如:/Users/a/Desktop/)