This commit is contained in:
2025-02-24 15:55:03 +01:00
commit 5bf67b2f31
2 changed files with 194 additions and 0 deletions

12
stands2.sh Executable file
View File

@@ -0,0 +1,12 @@
LAST=`date '+%F %H:%M:%Sz' -u`
echo \{\"data\":\[
for call in DJ7NT DG2RON DG0TM; do
URL="https://hamaward.cloud/aw363?iframe=1&nojs=1&tab=4&activator_call=X&score=1&callsign=$call&country=&score_name=all_mix"
VAL=`curl --silent $URL`
SCORE=`echo "$VAL" |grep -A1 '<div class="table-body-cell" style="font-size:16px;width:16.6%;min-width:90px;font-weight:bold;">' |grep nobr |awk {'printf $1"\n"'} |sed -e 's/<.*>//g'`
QSOS=`echo "$VAL" |grep -A1 '<div class="table-body-cell" style="font-size:16px;width:16.6%;min-width:50px;font-weight:bold;">' |head -2 |tail -1 |sed -e 's/<[^>]*>//g' |sed -e 's/\W//g'`
OUT="${OUT} {\"call\":\"$call\", \"score\":$SCORE, \"qsos\":$QSOS},"
done
echo -n $OUT |sed -e 's/\,$//g'
echo \],\"date\":\"$LAST\"\}