scrapinghub / scrapyrt

HTTP API for Scrapy spiders
BSD 3-Clause "New" or "Revised" License
824 stars 161 forks source link

Use another reactor instead of default `EPollReactor` #131

Closed avlm closed 2 years ago

avlm commented 2 years ago

Hello! I'm using scrapyrt for about a month now and it works great, but today I added a new spider to project that uses scrapy-playwright project.

For this to work I had to change the default scrapy reactor to twisted.internet.asyncioreactor.AsyncioSelectorReactor, but when I run the scrapyrt server and make a request to run this spider it breaks with this error:

builtins.Exception: The installed reactor (twisted.internet.epollreactor.EPollReactor) does not match the requested one (twisted.internet.asyncioreactor.AsyncioSelectorReactor)

Is it possible to make scrapyrt use the reactor specified in the scrapy settings?

avlm commented 2 years ago

no label. sorry!