Commit 16e24351 authored by Okhin's avatar Okhin

Fixing the Scappy thing which is Scrappy

parent b2331b5c
Pipeline #1183 passed with stage
in 3 seconds
......@@ -56,7 +56,7 @@ class VoteSpider(BaseSpider):
# Ecriture atomique
with gzip.open('%s.tmp.gz' % outfile, 'wb') as f:
f.write(json.loads(votes, cls=ScappyJSONEncoder).encode('utf-8'))
f.write(json.loads(votes, cls=ScrapyJSONEncoder).encode('utf-8'))
f.write('\n'.encode('utf-8'))
f.flush()
os.fsync(f.fileno())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment