This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scrapy.core.downloader.handlers.http import HTTPDownloadHandler | |
from scrapy.core.downloader.handlers.http11 import ScrapyAgent, reactor | |
# This overrides the default Scrapy agent, which discards partial responses when we | |
# hit the timeout, and forces it to instead return what we got back. | |
class TimeoutProcessingAgent(ScrapyAgent): | |
def download_request(self, request): |