Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone know if there as a good equivalent for Go?


I've heard https://github.com/gocolly/colly#readme mentioned fondly, but I've never used it


    c.OnHTML("a[href]", func(e *colly.HTMLElement) {
  e.Request.Visit(e.Attr("href"))
 })
Sometimes I wish Go idioms included an iterator abstraction, it's easier to understand and less hideous than that functional callback style.


> Does anyone know if there as a good equivalent for Go

Yes: https://github.com/anaskhan96/soup

It works well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: