avoid Cloudflare CAPTCHAs for OpenSSL < 1.1.1

see https://github.com/Anorov/cloudflare-scrape/pull/242
This commit is contained in:
Mike Fährmann
2019-05-15 12:25:20 +02:00
parent 0b4be57a10
commit c02f12ce2f
2 changed files with 4 additions and 2 deletions

View File

@@ -412,6 +412,8 @@ if urllib3.__version__ < "1.25":
"updating default urllib3 ciphers")
# cipher list taken from urllib3 1.25
# https://github.com/urllib3/urllib3/blob/1.25/src/urllib3/util/ssl_.py
# with additions from
# https://github.com/Anorov/cloudflare-scrape/pull/242
ssl_.DEFAULT_CIPHERS = (
"ECDHE+AESGCM:"
"ECDHE+CHACHA20:"
@@ -423,6 +425,8 @@ if urllib3.__version__ < "1.25":
"DH+AES:"
"RSA+AESGCM:"
"RSA+AES:"
"!ECDHE+SHA:"
"!AES128-SHA:"
"!aNULL:"
"!eNULL:"
"!MD5:"