I am trying to select a price in CSS selector for the following page;
https://www.funda.nl/en/koop/nieuwegein/huis-42656543-wattbaan-22/
The css path that I would like to select is 'strong.object-header__price'. This corresponds to the following line of code in scrapy shell and output:
response.css('strong.object-header__price').xpath('normalize-space()').extract()
['€ 675,000 k.k.']
However, I would only like to select the amount, 675,000.
For xpath I know how to do this, namely:
response.xpath("substring-before(substring(//
[@id='content']/div/div/div[1]/section[5]/div/dl[1]/dd[1]/span[1]/text(),'3','25'),'
')").extract()
Can someone please advise me how I can do the same steps, but then for the css selector? I cannot find on the internet how this can be done, so therefore this question.
Thanks in advance.