How can i configure the scrapy to write in csv without delay.
If i ran scrapy crawl spider_1 and let say spider_1 has an expected 200 items then the scrapy will going to write in csv but in by batch. I don't know where to configure this.
I tried the
CONCURRENT_REQUESTS = 1
CONCURRENT_ITEMS = 1
but still it writes in csv file by 15+ batches.
Here is they way i tested it..
while sleep 2; do cat results/price.csv | wc -l; done;
result was
   0
  35
  35
  35
  35
  52
  52
  52
  52
  70
  70
Notice that it writes the first 32th items then 20th then 18th.
What i want is that write the item right after it gets the data. How can i do that?
 
    