This commit is contained in:
Lillian Skinner 2025-06-17 17:27:24 -04:00 committed by GitHub
parent 4db585f9fd
commit e8dbcfbe09

View File

@ -1,4 +1,4 @@
#/bash
#!/bin/bash
# Hey folks, please do not run this script more than necessary.
# Too many search requests will temporarily block searches for everyone, not just you.
# I do not want to DDOS London. I just want to allow for personal backups. Cheers!
@ -39,10 +39,7 @@ SEARCH_FORMAT_DATE="f[0]=meeting_date%3A"
SEARCH_FORMAT_QUERY="search=query&sort_by=field_meeting_date"
# As far as I'm aware there are no meetings prior to 2011.
current_year=$(date +%Y)
current_month=$(date +%m)
current_day=$(date +%d)
i=$(date +%Y)
i=2011
x=$((i + 1))
echo $x
SEARCH_END="FALSE"
@ -231,15 +228,7 @@ while (( i < x )); do
*) MEETING_MONTH="--" ;;
esac
if (( 10#$MEETING_YEAR >= 10#$current_year )) && (( 10#$MEETING_MONTH >= $((10#$current_month - 1)) )); then
#echo "date is greater"
FOUNDMEETING="TRUE"
else
echo "SCRAPE_MEETINGS: Dates are in the past! Abort."
SEARCH_END="TRUE"
break
fi
fi
done < $SEARCH_PAGE
else