I am using Scrapy, XPath, and Python to scrape a website. When I get the results, it has \r\n. A google search has yielded that I need to use normalize-space() on my XPath. When I do it, see below, it does not work.
item ['runs'] = stats.select((normalize-space('//tr[@class="cell1"]/td[3]/text()')[count])).extract()
I get a "Global name normalize is not defined error.
Any ideas?