SSLv3 handshake failureSee original GitHub issue
openssl 1.1.1.d python 3.8.0 cfscrape 2.0.8
DEFAULT_CIPHERS as a suggested workaround for
cfscrape cannot solve captchas (#309), I get an SSLv3 error. Downloading the file via
requests works fine.
HTTPSConnectionPool(host='edge.forgecdn.net', port=443): Max retries exceeded with url: /files/2819/400/AbyssalCraft-1.12.2-18.104.22.168.jar (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')])")))
#!/bin/python import os, requests, cfscrape cfscrape.DEFAULT_CIPHERS = 'TLS_AES_256_GCM_SHA384:ECDHE-ECDSA-AES256-SHA384' scraper = cfscrape.create_scraper() response = requests.get("https://edge.forgecdn.net/files/2819/400/AbyssalCraft-1.12.2-22.214.171.124.jar") print(response) response = scraper.get("https://edge.forgecdn.net/files/2819/400/AbyssalCraft-1.12.2-126.96.36.199.jar") print(response)
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top GitHub Comments
I solved the issue for me with using
cfscrape.DEFAULT_CIPHERS = 'TLS_AES_256_GCM_SHA384:kECDHE'
kECDHE is the relevant cipher for edge.forgecdn.net.
Whatever the issue is,
cloudscraper which is a project that I use now as a drop-in replacement got it right, so would be worth to look there