mirror of
https://gist.github.com/1b471e5f5215c368fd78d9aba05f8dc2.git
synced 2026-01-26 13:42:45 -05:00
This commit is contained in:
parent
4db585f9fd
commit
e8dbcfbe09
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user