blob: 79fc3461ffebe1c87a65361a6c08ab3bb80df8ec (
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 'moment' |
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
write) echo "$entry" >> $HOME/.cache/debarque.csv ;;
*) echo " $count " ;;
esac
# echo "$entry"
|