3 ms·
We wrote something like this to power Skyvern: https://github.com/Skyvern-AI/skyvern/blob/0d39e62df6c516e0aaf14e570139d12ca86cebfe/skyvern/webeye/scraper/domUti
by suchintan 2y ago
We wrote something like this to power Skyvern: https://github.com/Skyvern-AI/skyvern/blob/0d39e62df6c516e0aaf14e570139d12ca86cebfe/skyvern/webeye/scraper/domUtils.js#L66 https://github.com/Skyvern-AI/skyvern/blob/0d39e62df6c516e0a...
It's adapted from vimium and works like a charm. Distill the html down to it's important bits, and handle a ton of edge cases along the way haha