Closed michaelbrunnbauer closed 11 months ago
ok thanks for reporting, will check that.
It looks like the spider argument was removed as part of cleanup here https://github.com/scrapy/scrapy/pull/5090
It was being passed in the past at a time when scrapy could run multiple spiders in one single crawl. We are not relying on having several spiders in single crawl, because we use separate crawl manager and crawler per HTTP request from user.
This means it should be safe to simply remove this argument from a call here. And it could fix the problem. I'll check and test that, unless some volunteers for PR with unit tests. https://github.com/scrapinghub/scrapyrt/blob/404b7b781c57627add70457e43dc1473d8b83b77/scrapyrt/core.py#L181
please test with recent master, I'll make a new release to pypi with this fix this week
I don't know how to install master but making the one line change from core.py works for me.
ok no problem, new version released now and can be installed from pypi
The new release also works - thank you!
From the release notes: "Passing a spider argument to the spider_is_idle(), crawl() and download() methods of scrapy.core.engine.ExecutionEngine, deprecated in Scrapy 2.6, is no longer supported"