-2
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 error:
f = write(response.body)
Nameerror: name 'write' is not defined
Can someone help me solve this problem?
Shouldn’t be
f.write
? You need to call a method, not overwrite the object.– Woss
True man, thanks already worked out.
– ChaarSales