4 ms·
I like web scraping in Go. The support for parsing HTML in x/text/html is pretty good, and libraries like github.com/PuerkitoBio/goquery go a long way to matchi
by xyzzy_plugh 3y ago
I like web scraping in Go. The support for parsing HTML in x/text/html is pretty good, and libraries like github.com/PuerkitoBio/goquery go a long way to matching ergonomics in other tools. This project uses both, but then also goes on to use github.com/dop251/goja, which is a JavaScript VM and it's accompanying nodejs compatability layer and even esbuild, in order to interpret scraping instruction scripts.
I mean, at this point I am not sure Go is the right tool for the job (I am actually pretty confident that it is not).
A pretty neat stack of engineering, sure! This is cool, niely done. But I can't help but feel disturbed.
- deleted 3y ago[deleted]
- cxr 3y agoYour comment was posted 4 minutes ago. That means you still have enough time to edit your comment to change it so it contains real URLs that link to the project repos for the packages mentioned: <https://github.com/PuerkitoBio/goquery https://github.com/PuerkitoBio/goquery> <https://github.com/dop251/goja https://github.com/dop251/goja> (Please do not reply to this comment of mine—if you do, I won't be able to delete it once the previous post is fixed, because the existence of the replies will prevent that.)
- cheapgeek 3y ago[flagged]
- xyzzy_plugh 3y agoEven if I saw this post in time, I wouldn't have edited it. They are all proper Go package names.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- cxr 3y agoThat's... not the point. But thanks to both[1] of you for reminding me how much this place sucks. 1. <https://news.ycombinator.com/item?id=38232101 https://news.ycombinator.com/item?id=38232101>
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]