commit 3e051c0febb56a1d2c0e47fee5430f3856a9c655
parent 459c295488193a9fb3b230e441c87e18b37ac973
Author: xfnw <xfnw@thunix.net>
Date: Fri, 8 Jan 2021 17:35:14 -0500
better crawl.php logging
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/crawl.php b/crawl.php
@@ -28,7 +28,7 @@ $arg = $argv;
array_shift($arg);
foreach ($arg as $url) {
- echo "\n\n";
+ echo "\n";
$url = preg_replace('/\/$/','',$url);
echo $url."\n";
$file = file_get_contents($url);
@@ -41,8 +41,7 @@ foreach ($arg as $url) {
continue;
}
- echo $title;
- echo $document;
+ echo "title: ".$title."\n";
$stmt = $db->prepare('DELETE FROM indexed WHERE url = ?');
$stmt->execute([$url]);