Michael Thomsen wrote:
> I'm trying to write a plugin for ActionStream which adds support for
> Slashdot, but to do that I need more complex functionality than what
> scraper or xpath provide in ActionStreams. Is it possible for me to
> have the action_stream in a config.yaml file for the plugin execute a
> Perl function instead of running the scraper or doing xpath?
Yes, see "Custom collectors" in the recipe guide provided with the
development version of the plugin (most of it applies to 1.0 as well):
<http://code.sixapart.com/svn/mtplugins/trunk/ActionStreams/plugins/ActionStream\
s/doc/recipe-guide.txt>
See the plugin's implementation of the Vox favorites stream for an
example. If you need only clean settings up after xpath or scraper
rules, also check out the "Cleaning up after your stream" and "Stream
recipe callback reference" sections. There are several examples in the
AS plugin.
HTH.
Mark Paschal
mark@...