From 4651e02449ddc508257e1928a9b271d14b46231b Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 24 Feb 2024 00:23:20 +0800 Subject: [PATCH] update browserless --- browserless/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/browserless/README.md b/browserless/README.md index 594fb90..c9d3dab 100644 --- a/browserless/README.md +++ b/browserless/README.md @@ -88,11 +88,23 @@ $ pip install selenium $ python screenshot.py $ imgcat google.png -$ http http://127.0.0.1:3000/screenshot \ +$ http :3000/screenshot \ url=https://www.youtube.com \ options[fullPage]:=true \ gotoOptions[waitUntil]=networkidle2 > youtube.png $ imgcat youtube.png + +$ http :3000/scrape url=https://www.youtube.com elements[0][selector]=title debug[network]:=true | + jq -r '.debug.network.outbound[].url' | + xargs -r tldextract -j | + jq -r 'select(.fqdn|length>0).fqdn' | + sort -u +accounts.google.com +fonts.googleapis.com +fonts.gstatic.com +googleads.g.doubleclick.net +i.ytimg.com +www.youtube.com ``` [1]: https://docs.browserless.io/