andrew-d / goscrape

Structured scraper for Go
25 stars 4 forks source link

Select not by Selector but function? #10

Open suntong opened 8 years ago

suntong commented 8 years ago

Currently goscrape only allows to use string as the "Selector", however, due to limitation of goquery selection, there is no way to select jQuery string like div.info-container:parent[3].attr("title"), so are there other ways for workaround, like using functions?

I've no clue myself, so, just shooting into the dark.

suntong commented 8 years ago

Please refer to https://github.com/suntong/goscrape/issues/4 for the fix.