RSS feed manipulation is alive
Daniel Sheppard
daniels at pronto.com.au
Thu Sep 29 02:56:24 EDT 2005
<<fix_xml.rb>> Requires some fiddling. You need to require the fix_xml
in your mousehole launcher, this provides:
- the ability to manipulate RSS/ATOM feeds
- only for application/xml+atom and text/xml mime types
- all output will be as an ATOM 1.0 feed
- the ability to cancel the manipulation of a page by raising
MouseHole::CancelRewrite
- this allows you to decide whether or not your script should
execute from within the script.
- helps to avoid both the overhead and error potential of page
reconstruction.
Then you can use the attached "Atomic Mouse" user script, wherein you
enter in an RSS/ATOM path and an Xpath for extracting from the
full-content page to create a full-content ATOM feed. The script will
cache page content so that you don't incur the wrath of an angry
webmaster. The cache is cleared upon modification of the xpath rule -
I'll probably change it to also keep an eye on the last updated time on
the feed entry as well.
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomic.user.rb
Type: application/octet-stream
Size: 15538 bytes
Desc: atomic.user.rb
Url : http://rubyforge.org/pipermail/mousehole-scripters/attachments/20050929/5136f9c3/atomic.user-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_xml.rb
Type: application/octet-stream
Size: 5164 bytes
Desc: fix_xml.rb
Url : http://rubyforge.org/pipermail/mousehole-scripters/attachments/20050929/5136f9c3/fix_xml-0001.obj
More information about the Mousehole-scripters
mailing list