Browse Source

Use new URLs; skip SSL cert checks

master
Adrian Short 8 years ago
parent
commit
c99b535059
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      get.sh

+ 4
- 3
get.sh View File

@@ -8,18 +8,19 @@
# Adrian Short 26 Feb 2016

COOKIEJAR=cookiejar.txt
BASEURL=https://fastweb.sutton.gov.uk/fastweb

mkdir -p $1
cd $1

curl -s -c $COOKIEJAR 'http://gis.sutton.gov.uk/FASTWEB/welcome.asp' > /dev/null # Get the session cookies
curl -s -c $COOKIEJAR "$BASEURL/welcome.asp" > /dev/null # Get the session cookies

curl -s -c $COOKIEJAR \
--data "cbxCopyrightStatement=on" \
--data "ApplicationNumber=$1" \
'http://gis.sutton.gov.uk/FASTWEB/images.asp' \
"$BASEURL/images.asp" \
| grep -E -o 'http.+?\.(pdf|PDF)' \
| wget --no-clobber -i -
| wget --no-check-certificate --no-clobber -i -

rm $COOKIEJAR
ls -lht


Loading…
Cancel
Save