Мой сканер написан на go, и я использую goquery.
Ниже приведен сценарий, который воспроизводит полученную ошибку:
Код: Выделить всё
package main
import (
"net/http"
"github.com/PuerkitoBio/goquery"
)
func main() {
url := "https://nicolasgatien.com/images/root-game.png"
resp, err := http.Get(url)
if err != nil {
panic(err)
}
defer resp.Body.Close()
println(url)
doc, err := goquery.NewDocumentFromReader(resp.Body)
if err != nil {
panic(err)
}
println(doc.Text())
}
Код: Выделить всё
html: open stack of elements exceeds 512 nodes
Каким образом превышен лимит?
Подробнее здесь: https://stackoverflow.com/questions/798 ... n-img-page
Мобильная версия