#!/bin/bash

#get GPS of Bonita property by FolioID

for id in {10291320..10291330}
do
  info="$(wget -qO- "https://www.leepa.org/Display/DisplayParcel.aspx?FolioID=${id}&LocationDetails=True#LocationDetails")"
  address="$(echo $info|grep -A 30 'divDisplayParcelOwner'|grep 'textPanel'|cut -d\> -f 2|cut -d\< -f1|tr -d "\n")"
  gps="$(echo $info|grep 'maps.google.com'|cut -d\" -f4|cut -d\: -f3|tr "+" ",")"
  echo "$id|$address|$gps"
done