initial
This commit is contained in:
12
stands2.sh
Executable file
12
stands2.sh
Executable 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\"\}
|
||||
Reference in New Issue
Block a user