Looking for Gold

David Martinez

dmartinez@esri.com

Text

Text

Capture the Data

Screen Scrape

What Language?

Something New

Python Libraries

Beautiful Soup

Geocoder

 # Geocoding
        g = geocoder.argis(address)
        if g.ok:
            row = {}
            row['source'] = address
            row['address'] = g.address
            row['lat'] = g.lat
            row['lng'] = g.lng
            row['postal'] = g.postal
url= 'http://www.acme.com/breweries/state/view/203/ca?cc=5901'
page = urllib2.urlopen(url)
soup = BeautifulSoup(page.read())

brewerytype = soup.find("div", {"class": "brewery-type"}).h6.contents
breweryinfo = soup.find("div", {"class": "brewery-name"})


Questions

Made with Slides.com