Skip to content

Commit

Permalink
print mosque
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoufik El Aoumari committed Apr 23, 2024
1 parent 73c9aa1 commit c760779
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/salat.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/usr/bin/env bash
set -Eeuo pipefail

mosque="mosquee-de-noisy-le-grand-noisy-le-grand"
echo "* $mosque"

(
echo "Subh,Duhr,Asr,Maghrib,Isha"
curl -s https://mawaqit.net/ar/mosquee-de-noisy-le-grand-noisy-le-grand \
curl -s https://mawaqit.net/ar/$mosque \
| grep -E -o '"times":\[[^a]+\]' \
| sed 's/"//g; s/times:\[//; s/\]//'
) | column -s, -t

0 comments on commit c760779

Please sign in to comment.