Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't disable SSL verification in Scrapy #4040

Closed
bigtang5 opened this issue Sep 27, 2019 · 4 comments
Closed

Can't disable SSL verification in Scrapy #4040

bigtang5 opened this issue Sep 27, 2019 · 4 comments

Comments

@bigtang5
Copy link

I think it's a bug, not a feature.

The proxy provider give the demo code:

r = requests.get("https://www.baidu.com/", headers=headers, proxies=proxy, verify=False, allow_redirects=False)

It works fine, It will fail when remove "verify=False".

Now I have to use the proxy in my scrapy project, There is no way to add "verify=False" in Scrapy unless I write my own HTTPDownloadHandler.

HEW, what a huge work......

@wRAR
Copy link
Member

wRAR commented Oct 21, 2019

What happens in your spider? As described in https://docs.scrapy.org/en/latest/topics/settings.html#downloader-clientcontextfactory Scrapy doesn't verify server certificates by default, unlike requests.

@wRAR
Copy link
Member

wRAR commented Nov 12, 2019

Hi @bigtang5 , do you have anything to add here?

@zhuifeng7000
Copy link

@bigtang5

how do you solve this problem ?
can you share it?

@wRAR
Copy link
Member

wRAR commented Nov 18, 2019

@zhuifeng7000 can you please answer the questions in the first comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants