Advertisement
metalx1000

Township Sector and Range finder for Collier County Area

Oct 8th, 2016
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.99 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. address="$(echo $1|sed 's/ /%20/g')"
  4. date="$(date +%Y%M%d0800)"
  5.  
  6. 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)"
  7.  
  8. 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")"
  9.  
  10. tsr="$(echo "$data"|sed -e 's/,"StreetCity":"NAPLES",/\n/g' -e 's/,"MillageArea"/\n/g'|grep Township)"
  11. address="$(echo "$data"|sed -e 's/"Name3":"/\n/g'|tail -n 1|cut -d\" -f1)"
  12.  
  13. echo "$address"
  14. echo "$tsr"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement