How can I stop redirecting from a target url to another url which is a confirmation page of a website with a captcha?
Here is my code below:
yield scrapy.Request(meta={'handle_httpstatus_list': [302], 'dont_redirect': True, 'redirect_enabled':False},url=url, callback=self.profileCategoryPages)
Now it redirects me to another web page from a web page. I don't know why it is happening. It did not happen when I ran it for the first time, but when I ran for the second time, and ran it again and again, all I got is that it is redirect to another web page.
Tagget page: http://www.profilecanada.com/browse_by_category.cfm/
Redirected to this page: http://www.profilecanada.com/confirmReqPage.cfm
Thank you for your help!