2007년 6월 9일 토요일

aggrss, an rss aggregator

aggrss, an rss aggregator


[updated] Uses the lastRSS library tolastrss_button.gif
aggregate RSS feeds.
lastRSS (and this plugin) gives you:

  • All RSS versions supported (0.9, 1.0 and 2.0)
  • Regullar expression parsing (very quick)
  • Returns an associative array with RSS fields
  • RSS tags not present in RSS are also not present in result now
  • Transparent cache
  • Character encoding conversion (all encodings supported by iconv library)

lastRSS is free open-source software (GNU/GPL), this plugin has a BSD license

Note, I’ve modified the lastRSS.php included in aggrss.zip, see comments in the file.

Instructions:

  1. Create the cache directory - wp-content/aggrss-cache - and make it world writeable (chmod 777)
  2. create subdir wp-content/plugins/lastRSS
  3. Extract lastRSS.zip and save lastRSS.php in wp-content/plugins/lastRSS
    local copy at http://soderlind.no/download/lastRSS.0.9.1.zip (760 downloads)
  4. Save aggrss.php.txt (2440 downloads) as aggrss.php in your wp-content/plugins directory
  5. Activate the plugin from the Plugins page (re-activate (deactivate + activate) if you are upgrading aggrss)

Use:

$rs = aggrss($rssurl,$striptags=false,$num=0)

$rssurl, url to the rss

optional parameters:
$striptags, if true all html tags will be remove from decriptions.
$num, defines the number of records you want to display, $num=0 equals all available

aggrss returns the rss content as an associative array with RSS fields, see sample below.

댓글 없음: