1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-12 04:23:04 +02:00

update browserless

This commit is contained in:
kevin 2024-02-24 00:23:20 +08:00
parent f996b2195b
commit 4651e02449

View File

@ -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/