summaryrefslogtreecommitdiff
path: root/abfall_spermüll/get.sh
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2011-12-25 23:16:41 +0100
committerYves Fischer <yvesf-git@xapek.org>2011-12-25 23:16:41 +0100
commitbb4f51f545e48faf90cf09671056530d124f770a (patch)
tree1311c820304638ca272b5f127be54a75e4a04ced /abfall_spermüll/get.sh
parentc5520f7ed7ca5812b87e33f83475696e3353596d (diff)
downloadscripts-bb4f51f545e48faf90cf09671056530d124f770a.tar.gz
scripts-bb4f51f545e48faf90cf09671056530d124f770a.zip
sperrmüll
Diffstat (limited to 'abfall_spermüll/get.sh')
-rwxr-xr-xabfall_spermüll/get.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/abfall_spermüll/get.sh b/abfall_spermüll/get.sh
index a689f8f..4f892dd 100755
--- a/abfall_spermüll/get.sh
+++ b/abfall_spermüll/get.sh
@@ -11,12 +11,12 @@ parse_tour() {
fetch_tour $tourId > "$tmp"
bereich=`sed -n -e 's/.*Bereich: \([^<]\+\).*/\1/p' < "$tmp"`
for datum in `sed -n -e 's/\s\+\w\+, \([0-9]\{2\}\)\. \(\w\+\) \([0-9]\{4\}\).*/\1.\2.\3/p' < "$tmp"`; do
- python -c "import time; print time.strftime('%F', time.strptime('$datum', '%d.%B.%Y')), '$bereich'"
+ python -c "import time,locale; locale.setlocale(locale.LC_TIME, 'de_DE.utf8'); print time.strftime('%F', time.strptime('$datum', '%d.%B.%Y')), '$bereich'"
done
rm "$tmp"
}
-for tourId in `seq 0 9000`; do
+for tourId in `seq 1 9000`; do
echo tourId=$tourId >&2
- parse_tour tourId
+ parse_tour $tourId
done