added colors to scrapers validator
added colors to scrapers validator


Former-commit-id: ab47cd0593c47f1a2099381e7118267a82ce2fe3

--- a/documents/checkScrapers.php
+++ b/documents/checkScrapers.php
@@ -4,7 +4,7 @@
 include_header('Webserver and Accessiblity');
 
 echo "<table>
-    <tr><th>name</th><th>webserver</th><th>accessiblity errors</th></tr>";
+    <tr><th>name</th><th>disclog</th><th>scraper?</th></tr>";
 $agenciesdb = $server->get_db('disclosr-agencies');
 $docsdb = $server->get_db('disclosr-documents');
 try {
@@ -14,14 +14,25 @@
     if ($rows) {
         foreach ($rows as $row) {
 
-            echo "<tr><td>" . $row->value->name . "</td>\n";
+            echo "<tr><td>" . $row->value->name . " (".$row->id.")</td>\n";
              echo "<td>";
              if (isset($row->value->FOIDocumentsURL)) {
                  echo '<a href="viewDocument.php?hash='.md5($row->value->FOIDocumentsURL).'">'
                      .$row->value->FOIDocumentsURL.'</a>';
-             }
-            echo "</td>\n";
-            echo "</tr>\n";
+             } else {
+                echo "<font color='red'>✘</font>";
+            }
+            echo "</td>\n<td>";
+            if (isset($row->value->FOIDocumentsURL)) {
+            if (file_exists("./scrapers/".$row->id.'.py')) {
+                echo "<font color='green'>✔</font>";
+            } else if (file_exists("./scrapers/".$row->id.'.txt')){
+                echo "pass";
+            } else {
+                echo "<font color='red'>✘</font>";
+            }
+            }
+            echo "</td></tr>\n";
         }
     }
 } catch (SetteeRestClientException $e) {