Posts by ChaarSales • 3 points
3 posts
-
0
votes1
answer458
viewsQ: Save Excel file to Python via Scrapy
As I do for mine Spider save all Excel data in a single XML file links which I extract? Or also save in each single XLS file in the project folder? Part of my Spider: def parse(self, response): divs…
-
-2
votes1
answer48
viewsQ: Write excel file within Scrapy project
I have a Spider that picks up the xlsx links, in Request I call the files and saved in: def save_file(self, response): f = open("teste.xls", "wb") f = write(response.body) f.close() But returns the…
-
0
votes1
answer53
viewsQ: Parse Xpath from Int
I have a scrapy running the for to bring the day and link to something. Ex: t_day = div.xpath('.//a/text()').extract_first() a_day = div.xpath('.//a/@href').extract_first() day = int(t_day) if day…