Compare commits

..

2 Commits

Author SHA1 Message Date
9d0a0b732f added update scripts. 2023-07-16 16:36:37 +02:00
fbf7c1c7d2 added support for expert.nl & maximax.com 2023-07-16 16:33:24 +02:00
3 changed files with 20 additions and 0 deletions

View File

@@ -284,6 +284,12 @@ async function crawlProductStock(url: string): Promise<[string, string, boolean]
case "dectdirect.nl": case "dectdirect.nl":
return [domain, page.url(), await Dectdirect.check(html)]; return [domain, page.url(), await Dectdirect.check(html)];
case "expert.nl":
return [domain, page.url(), await LDJsonParser.check(html)];
case "maxiaxi.com":
return [domain, page.url(), await LDJsonParser.check(html)];
default: default:
console.error(`-- ${domain} is not an supported website! Cannot check stock!`); console.error(`-- ${domain} is not an supported website! Cannot check stock!`);

7
update.linux.sh Executable file
View File

@@ -0,0 +1,7 @@
echo "Updating crawler source..."
git pull
echo "Updating crawler source... DONE"
echo ""
echo "Updating crawler packages..."
npm install
echo "Updating crawler packages... DONE"

7
update.win.bat Normal file
View File

@@ -0,0 +1,7 @@
echo "Updating crawler source..."
git pull
echo "Updating crawler source... DONE"
echo ""
echo "Updating crawler packages..."
npm install
echo "Updating crawler packages... DONE"