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

LinkFinder/linkfinder.py:133: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) #152

Open
ethicalanuj opened this issue Jun 21, 2024 · 1 comment

Comments

@ethicalanuj
Copy link

LinkFinder/linkfinder.py:133: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated

sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
@lifeishelld
Copy link

ssl:PROTOCOL_TLSv1_2 works no more replace with code below

try:
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
response = urlopen(q, timeout=args.timeout, context=sslcontext)
except Exception as e:
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
response = urlopen(q, timeout=args.timeout, context=sslcontext)

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

No branches or pull requests

2 participants