Using the command:
cena_postov=driver.find_elements_by_xpath("//*[starts-with(@id, 'td_')]/td[11]/a[1]/span/span")
for spisok_cen in cena_postov:
print(spisok_cen.get_attribute('textContent'))
I get a text list. I want to convert it to a number using
if int(spisok_cen.get_attribute('textContent'))<=10 and int(spisok_cen.get_attribute('textContent'))>=12000:
print('anything')
but the symbol '
bothers me.
I get an error invalid literal for int() with base 10: ": 6'000
how to make python ignore this character?