Sfoglia il codice sorgente

Use new URLs; skip SSL cert checks

master
Adrian Short 8 anni fa
parent
commit
c99b535059
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. +4
    -3
      get.sh

+ 4
- 3
get.sh Vedi 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


Caricamento…
Annulla
Salva