result = {}
if 'Ulice: ' in list(spans.keys()):
    result['ulica'] = spans['Ulice: ']
else:
    result['ulica'] = ''
if 'Kontaktn\xed osoba: ' in list(spans.keys()):
    result['kontaktna osoba'] = spans['Kontaktn\xed osoba: ']
else:
    result['kontaktna osoba'] = ''
if 'M\u011bsto: ' in list(spans.keys()):
    result['mesto'] = spans['M\u011bsto: ']
else:
    result['mesto'] = ''
if 'PS\u010c: ' in list(spans.keys()):
    result['psc'] = spans['PS\u010c: ']
else:
    result['psc'] = ''
if 'Telefon: ' in list(spans.keys()):
    result['telefon'] = spans['Telefon: ']
else:
    result['telefon'] = ''
Avoid manually decoding many strings in code