aggrss, an rss aggregator
[updated] Uses the lastRSS library to
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:
- Create the cache directory - wp-content/aggrss-cache - and make it world writeable (chmod 777)
- create subdir wp-content/plugins/lastRSS
- 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) - Save aggrss.php.txt (2440 downloads) as aggrss.php in your wp-content/plugins directory
- 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.
댓글 없음:
댓글 쓰기