Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- address="$(echo $1|sed 's/ /%20/g')"
- date="$(date +%Y%M%d0800)"
- id="$(curl -s "http://www.collierappraiser.com/Main_Search/database_w.asp?FullAddress=$address&ccpaver=1.9.3&grid=parcels&tab=1&expires=$date" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36' -H 'Referer: http://www.collierappraiser.com/Main_Search/search.html?ccpaver=1.9.6'|sed 's/"cell":\[1,"/\n/g'|tail -n1|cut -d\" -f1)"
- data="$(curl -s "http://www.collierappraiser.com/Main_Search/database_w.asp?FolioID=$id&expires=$date" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36' -H "Referer: http://www.collierappraiser.com/Main_Search/RecordDetail.html?FolioID=$id")"
- tsr="$(echo "$data"|sed -e 's/,"StreetCity":"NAPLES",/\n/g' -e 's/,"MillageArea"/\n/g'|grep Township)"
- address="$(echo "$data"|sed -e 's/"Name3":"/\n/g'|tail -n 1|cut -d\" -f1)"
- echo "$address"
- echo "$tsr"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement