Closed Carpela closed 8 years ago
I think I've got it.
Assuming an array of those above
Wombat.crawl do
base_url @base_url
field_definitions.each do |fd|
send(fd["field_name"],xpath:fd["xpath"])
end
end
If that works for you then you should probably close the issue....
I have a set of sites I index regularly where I store various field definitions alongside xpath parameters. e.g.
Is there a way I can use that with the wombat DSL? Can't work out how to make the field_name display itself in the right way.