I am using the QPython3 Android app and I installed the requests module with pip.
import requests
req = requests.get("http://google.com")
print(req.text)
If you enter the code as shown above, it will run normally, but if you change http to https, the error below appears.
ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers availble (_ssl.c:841)
During handling of the above exception, another exception ocurred:
(omitted)
urlib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url / (Caused by SSLError(SSLError(1, '[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:841)'),))
During handling of the above exception, another exception ocurred:
(omitted)
requests.exceptions.SSLError: HTTPSConnectionPool(host = 'www.google.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:841)'),))
At first, I thought it was an https-related problem, but when I changed the address to Amazon, in the case of Amazon, the same error appears whether it is http or https.
I planned to crawl on Android, but even though it's the same code, it works well on PC and it doesn't work here
crawling python android
What is the Python version? Also, what version of openssl is installed on Android?
These errors can be simple or complex.
Once you access google.com, you will be asked for tls 1.3.
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 256 bit
Python uses openssl when using ssl. If an error occurs when accessing https, you must check the openssl version. Since the openssl library is usually distributed with Python, you can also find the openssl version by checking the Python version.
Please check Python 3.5.2 or higher and openssl 1.1.0 or higher.
582 PHP ssh2_scp_send fails to send files as intended
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
619 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.