Ich bin gerade dabei einen Webcrawler mit Scrapy zu programmieren und um diese Daten dann in eine Excel Datei zu exportieren.
Dabei habe ich jetzt folgendes Problem, mit dem ich jetzt schon einige Zeit herumkämpfe:
Code: Alles auswählen
In [43]: test = response.css('#js-section-1290::text').extract()[0].strip()
In [44]: print(test)
In [45]: test = response.css('#js-section-1290::text').extract()
In [46]: print(test)
['\r\n\r\n ', '\r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n This idea will slow everyone down and encourage them to take a minute to recognize the contributions of those they work with. A few simple words of recognition and gratitude energizes people, and the more we do it, the better we will get at it.\r\n \r\n\r\n \r\n\r\n \r\n\r\n ']
Da ich noch ein ziemlicher Anfänger bin, wollte ich fragen ob jemand vielleicht eine Alternative kennt um an den Text zu kommen?
Liebe Grüsse
Stefan