コード例 #1
0
def get_location(soup):
    try:
        location = soup.find('span', itemprop="address").text
    except:
        print "\n*****************"
        print "Check get_location"
    
    full_address, address, location = featurizing_locations(location)
    print full_address, address, location
    return full_address, address, location
コード例 #2
0
def get_location(soup):
    try:
        location = soup.find('span', itemprop="address").text
    except:
        print "\n*****************"
        print "Check get_location"

    full_address, address, location = featurizing_locations(location)
    print full_address, address, location
    return full_address, address, location
コード例 #3
0
def get_location(soup):
    '''
    '''
    try:
        soup_address = soup.find('span', itemprop="address").text
    except:
        print "\n*****************"
        print "Check get_location"
        return None, None, None
    
    full_address, address, location = featurizing_locations(soup_address)
    return full_address, address, location