Issue
I want to use Crawlera only for some requests in a Scrapy spider. So I want to set CRAWLERA_ENABLED
differently for different requests. Is it possible?
Solution
You can use the dont_proxy
key in meta
for those requests you don't want to use Crawlera. E.g.
# Supposing you have crawlera enabled in `settings.py`
yield scrapy.Request(
url,
meta={"dont_proxy": True},
callback=self.parse
)
Answered By - Thiago Curvelo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.