I'm using Scrapy in a script of mine as describe in the Common Practices on the docs
I need to disable the Scrapy logs completely (not change verbosity). I tried this:
Spider.custom_settings['LOG_ENABLED'] = False
and this:
configure_logging({'LOG_ENABLED': False})
In both cases, Scrapy is still logging everything.
How do you completely disable Scapy logs when running Scrapy in a script (note that I have my own logger that I want to keep, it's just Scrapy logs that I want to remove).
I was able to solve this by using:
logging.getLogger('scrapy').propagate = False
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With