'Python Binance request blocked by internet provider

Currently, i am working to automate my binance account using python-binance 1.0.0++

Unfortunately, the web is blocked by the government but I still can access the web using public DNS (google / cloudflare) by setup the security settings. Or i can also add the DNS to my Network Adapter

But when I try the python-binance to get_all_orders, then the result still shows a scraped blocked landing page by our government even when i do browsing using the chrome / edge, no issue at all. I have tried to change the DNS at the browser and at Network Adapter. Nothing are work for me. The error is shown below.

requests.exceptions.SSLError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

Anyone can help me to do the same on my python as my browser work? enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source