Tested given 5-6th code above with json output but no ReactorNotRestartableerror.
$ python -V
Python 3.10.6
$ pip show scrapy | grep "Version"
Version: 2.13.4
$ pip show nest_asyncio | grep "Version"
Version: 1.6.0
I remember dealing with some reactor? or scrapy internal something error before
issue using twisted 22.10.0 incompatible with scrapy 2.13.2 fix using twisted 21.7.0