Miguel Miguel - 1 year ago 152
Python Question

run scrapy runspider without the printed logs

I'm executing a scrapy spider using:

scrapy runspider my_spider.py -o results.json

How do I execute it silently, i.e., without all the spider print logs?

Answer Source

You can use the command line option --nolog which sets LOG_ENABLED to False

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download