From: root Date: Sat, 01 Dec 2012 08:16:51 +0000 Subject: rss and scrapers run X-Git-Url: https://maxious.lambdacomplex.org/git/?p=disclosr.git&a=commitdiff&h=b87c2323b2b39d3a4ba255d7da72aa7f8c000afc --- rss and scrapers run Former-commit-id: 6239a29e9c472fe99557d85ea0fe4b3083d35da3 --- --- a/documents/rss.xml.php +++ b/documents/rss.xml.php @@ -11,7 +11,7 @@ //Use wrapper functions for common channelelements $TestFeed->setTitle('Last Modified - All'); $TestFeed->setLink('http://disclosurelo.gs/rss.xml.php'); -$TestFeed->setDescription('This is test of creating a RSS 2.0 feed Universal Feed Writer'); +$TestFeed->setDescription('Latest entries'); $TestFeed->setChannelElement('language', 'en-us'); $TestFeed->setChannelElement('pubDate', date(DATE_RSS, time())); //Retriving informations from database @@ -21,7 +21,7 @@ $idtoname[$row->id] = trim($row->value->name); } $foidocsdb = $server->get_db('disclosr-foidocuments'); -$rows = $foidocsdb->get_view("app", "byDate", Array('9999-99-99','0000-00-00'), true)->rows; +$rows = $foidocsdb->get_view("app", "byDate", Array('9999-99-99','0000-00-00', 50), true)->rows; //print_r($rows); foreach ($rows as $row) { //Create an empty FeedItem @@ -38,3 +38,4 @@ //OK. Everything is done. Now genarate the feed. $TestFeed->generateFeed(); ?> + --- /dev/null +++ b/documents/runScrapers.sh @@ -1,1 +1,3 @@ +for f in scrapers/*.py; do echo "Processing $f file.."; python $f; done + --- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -21,7 +21,7 @@ - +