You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Item struct {
Title string `pagser:"td->eq(0)"`
Image string `pagser:"td a img->attr(src)"`
Quote string `pagser:"td->eq(3)"`
Description string `pagser:"td->eq(4)"`
}
If I put td->eq(2) in the tag for Image, I get the text() for the full tr. But without the ->eq(2), it's possible I may end up with a different image. Ideally don't want to make a sub-struct just for this one field if possible.
(Happy to have a go at implementing this if it's actually possible.)
The text was updated successfully, but these errors were encountered:
If I put
td->eq(2)
in the tag forImage
, I get thetext()
for the fulltr
. But without the->eq(2)
, it's possible I may end up with a different image. Ideally don't want to make a sub-struct just for this one field if possible.(Happy to have a go at implementing this if it's actually possible.)
The text was updated successfully, but these errors were encountered: