Using Magpierss, here is something quick and dirty that seems to work for me. Not sure how to get the tags inserted, but the rest should work. Just set it up as a cron.
Code:<? require('../magpierss/rss_fetch.inc'); include('config.php'); require(mnminclude.'link.php'); $rss_feeds=array ( array( 'url'=>"http://digg.com/rss/index.xml", 'category'=>7, 'author'=>16, // 'tags'=>' ), ); echo "<ul>\n"; foreach ($rss_feeds as $feed ) { $rss = fetch_rss($feed['url']); echo "<li>Site: ", $rss->channel['title'], "<br>\n"; foreach ($rss->items as $item ) { $item['author']=$feed['author']; $item['category']=$feed['category']; $title = $item[title]; $desc= $item[description]; echo "<ul>"; echo "<li>Processing <a href=$url>$title</a></li>\n"; rss_store($item); echo "<li>Finished Processing <a href=$url>$title</a></li><br><br/>\n\n"; echo "</ul>"; } echo "</li>"; } echo "</ul>"; function rss_store($item) { $linkres=new Link; $edit = false; $linkres->get(trim($item['link'])); if(!$linkres->valid) { rss_error($item['link']); return; } if($linkres->duplicates($item['link']) > 0) { rss_error($item['url']); return; } $linkres->status='discard'; $linkres->author=$item['author']; $linkres->title=$item['title']; $linkres->content=$item['description']; $linkres->id=0; $linkres->category=$item['category']; $linkres->randkey=rand(10000,10000000); $linkres->read(); $linkres->status='queued'; $linkres->store(); return; } function rss_error($url){ echo "Skipped $url <br/>\n"; } ?>









