5 ms·
rows := scrape.FindAll(table, scrape.ByTag(atom.Tr)) cols := []*html.Node{} for _, row := range rows { // Find returns the first result col, ok
by ericchiang 11y ago
rows := scrape.FindAll(table, scrape.ByTag(atom.Tr))
cols := []*html.Node{}
for _, row := range rows {
// Find returns the first result
col, ok := scrape.Find(row, scrape.ByTag(atom.Td))
if ok {
cols = append(cols, col)
}
}
- chrissnell 11y agoThanks!