Search the web
Sign In
New User? Sign Up
mt-dev · Movable Type Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Is it possible to have an ActionStream plugin execute code instead o   Message List  
Reply | Forward Message #2083 of 2112 |
Re: Is it possible to have an ActionStream plugin execute code instead of the scraper or xpath functionality?

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@...





Wed Aug 20, 2008 5:20 pm

markpaaasc
Offline Offline
Send Email Send Email

Forward
Message #2083 of 2112 |
Expand Messages Author Sort by Date

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...
Michael Thomsen
codemonkeyov...
Offline Send Email
Aug 20, 2008
4:55 pm

... 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): ...
Mark Paschal
markpaaasc
Offline Send Email
Aug 20, 2008
5:20 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help