From 6215fe701666998a99e20e415ba90231efeadd56 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 15 Apr 2024 15:00:40 +0800 Subject: [PATCH] update browserless --- browserless/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browserless/README.md b/browserless/README.md index c9d3dab..6a28d55 100644 --- a/browserless/README.md +++ b/browserless/README.md @@ -80,6 +80,10 @@ driver.quit() ```bash $ docker-compose up -d +$ crontab -l +0 */4 * * * docker restart browserless-browserless-1 +5 * * * * docker exec browserless-browserless-1 find /tmp -name '.com.google.Chrome.*' -mmin +60 -exec rm -rf {} \; + $ npm install puppeteer-core $ node screenshot.js $ imgcat google.png