ratt: update urls, fix ratt-hourly

This commit is contained in:
makefu 2023-12-04 20:52:31 +01:00
parent 9b8d8cf417
commit b2df4b4c8a
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
3 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ EOF
echo "looping through $URLS"
cat "$URLS" | while read line;do
echo "fetching $line"
ratt auto "$line" | \
ratt "$line" | \
xmlstarlet sel -t -c "//item" >> "$OUTFILE" || :
done

View file

@ -11,7 +11,6 @@ in {
script = builtins.readFile ./ratt-hourly.sh;
scriptArgs = "${./urls} ${out-path}";
preStart = "install -v -m750 ${./ebk.yml} ${ratt-path}/ebk.yml"; # ratt requires the config file in the cwd
serviceConfig.User = "nginx";
serviceConfig.WorkingDirectory= ratt-path;
startAt = "00/3:07"; # every 3 hours, fetch latest

View file

@ -7,3 +7,4 @@ https://www.ebay-kleinanzeigen.de/s-muehlhausen/dymo/k0l9313r5
https://www.ebay-kleinanzeigen.de/s-zu-verschenken/muehlhausen/lautsprecher/k0c192l9313r5
https://www.ebay-kleinanzeigen.de/s-muehlhausen/preis::40/winkelschleifer/k0l9313r5
https://www.ebay-kleinanzeigen.de/s-muehlhausen/preis::40/kontaktgrill/k0l9313r5
https://www.kleinanzeigen.de/s-dices-throne/k0r200