Open
Description
I see this is caused by the line no 83.
if 'proxy' in request.meta:
if request.meta["exception"] is False:
return
If we have used proxy in start requests function then this issue arises which makes sense because exception is not defined in meta up to this point for our first request.
I guess most of us either use a random proxy or custom proxy. So no one ever bothered about it.
I think the line 83 is important because it enables to change proxies in each retry or after exception.
def start_requests(self):
yield scrapy.Request('http://quotes.toscrape.com/', callback=self.parse, meta={'proxy': 'http://xxxx:xxxx@xxxx:xxxx'})
Also to change the proxy in retry. Comment out this in process_exception. #15
if 'proxy' not in request.meta:
return
Metadata
Metadata
Assignees
Labels
No labels