How to export scrubyt extractor?

Posted by robintw on Stack Overflow See other posts from Stack Overflow or by robintw
Published on 2010-05-29T11:19:16Z Indexed on 2010/05/29 11:22 UTC
Read the original article Hit count: 349

Filed under:
|
|

I've written a scrubyt extractor based on the 'learning' technique - that is, specifying the current text on the page and getting it to work out the XPath expressions itself. However, I now want to export the extractor so that it can be used even when the page has changed.

The documentation for scrubyt seems to be all over the place now, but from what I can find I should be able to put the line extractor.export(__FILE__) and it should work. It doesn't - I just get an error saying that there is the wrong number of arguments for export, it should have 0. I've tried it without any arguments and it still fails.

I would ask on the scrubyt forum, but it seems like no-one's been there for ages!

Any ideas what to do here?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about screen-scraping