Is there an easy way to fetch punycode domains? I tried using the requests module, but it didn't work.
The following code doesn't work:
import requests
requests.get("https://.la")
InvalidURL: Failed to parse: https://.la
using Python 3.10.4
, requests==2.28.1
, urllib3==1.26.13
I solved my problem using the following function