I am trying to calculate the tax of a numerical value extracted with xpath, to save it in a csv file, but I do not know what I am doing wrong or if I need to add something else.
This the code:
         import math
         for ntp in response.css('div.content-1col-nobox'):
             price1 = ntp.xpath('normalize-space(//tr[2]/td[@id="right_cell"][1])').extract()[0].split(None,1)[0].replace(",",".")
             tax = price1 * 0.22
             price = price1 + tax
          writer.writerow({
             '*StartPrice': price,\
and this is the error that I get:
    tax = price1 * 0.22
    TypeError: can't multiply sequence by non-int of type 'float'
Any help will be appreciate it.
 
    