Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想将 Crawlera 用于 Scrapy 蜘蛛中的某些请求。所以我想CRAWLERA_ENABLED为不同的请求设置不同的设置。是否可以?
CRAWLERA_ENABLED
对于那些不想使用 Crawlera 的请求,您可以使用该dont_proxy键。meta例如
dont_proxy
meta
# Supposing you have crawlera enabled in `settings.py` yield scrapy.Request( url, meta={"dont_proxy": True}, callback=self.parse )