def __parse_base_atm_terminal(self, row, point_type, coordinates, deposit=False): point = Point() point.prov = self.uid point.type = point_type point.name = normalize_text(u'№' + str(int(row[1]))) city = row[2] if u'р-н' not in row[2]: city = u'г. %s' % city point.address = normalize_address(u'%s, %s' % (city, row[3])) point.place = normalize_text(row[4]) if u'только безнал.платежи' in row[5]: point.currency = [] if deposit: point.deposit = False else: point.currency = map(strip, row[5].split(',')) if deposit: point.deposit = True point.time = normalize_time(row[6]) point.check_information = CHECK_OFFICIAL point.lat, point.lng = self.__get_point_coordinate(point.address, coordinates) if point.lat and point.lng: point.check_coordinates = CHECK_OFFICIAL else: warning_not_official_coordinates(point) return point
def __parse_terminal(self, item): point = Point() point.prov = self.uid point.type = TYPE_TERMINAL point.address, point.place = split_address_place(item('td:eq(2)').text()) point.place = normalize_text(item('td:eq(1)').text()) point.currency = map(strip, item('td:eq(4)').text().split(',')) if point.currency: point.deposit = True else: point.deposit = False point.time = normalize_time(item('td:eq(3)').text()) point.check_information = CHECK_OFFICIAL warning_not_official_coordinates(point) return point
def __parse_terminal(self, item): point = Point() point.prov = self.uid point.type = TYPE_TERMINAL point.address, point.place = split_address_place(item('td:eq(1)').text()) point.time = normalize_time(item('td:eq(2)').text()) point.deposit = u'Пополнение карточки наличными' in item('td:eq(3)').text() point.check_information = CHECK_OFFICIAL warning_not_official_coordinates(point) return point
def __parse_terminal(self, item): point = Point() point.prov = self.uid point.type = TYPE_TERMINAL point.name = normalize_text(item('td:eq(0)').text()) point.address, point.place = split_address_place(item('td:eq(1)').text()) point.place = point.name point.time = normalize_time(item('td:eq(2)').text()) point.deposit = normalize_text(item('td:eq(3)').text()).lower() == u'есть' point.check_information = CHECK_OFFICIAL warning_not_official_coordinates(point) return point