blob: 2a1bd9de9e56088a0983e58469a2fcee0aff203a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
# count="$(curl https://www.ladebarque.com/achalandage |
# grep 'il y a' |
# sed 's/.*il\sy\sa\sen\sce\smoment\s//; s/\sgrimpeurs.*//')"
count="$(curl -L ladebarque.com/achalandage |
grep -i 'grimpeur' |
sed 's/\s//g;
s/Maximum.*//;
s/^.*moment//;
s/\([0-9]\+\).*/\1/')"
# curl https://www.ladebarque.com/achalandage > ~/asdf.html
sep=","
date="$(TZ='America/Toronto' date +"%Y-%m-%d$sep%R")"
entry=""$date"$sep"$count""
case "$1" in
echo) echo "$entry" ;;
*) echo "$entry" >> $HOME/.cache/debarque.csv ;;
esac
# echo "$entry"
|