How To Remove White Space in Scrapy Spider Data
问题 I am writing my first spider in Scrapy and attempting to follow the documentation. I have implemented ItemLoaders. The spider extracts the data, but the data contains many line returns. I have tried many ways to remove them, but nothing seems to work. The replace_escape_chars utility is supposed to work, but I can't figure out how to use it with the ItemLoader . Also some people use (unicode.strip), but again, I can't seem to get it to work. Some people try to use these in items.py and others