It is required to open the site " https: // where the impact of the Russian Federation " and then its pages (for example, " https: // the delivery of the impact of the Russian Federation / in the condition of the word / "). Mirror of the main page via the URL - https: //xn----8sbhebeda0a3c5a7a.xn--p1ai/ ". When I try to do this, I get the following error (see photo). How can I fix this? I tried to encode via urllib.quote, and through 'url'.encode (' utf-8 ') does not work at all. enter image description here

CertificateError: hostname 'where-stress.rf' doesn't match either of 'www.xn ---- 8sbhebeda0a3c5a7a.xn - p1ai', 'xn ---- 8sbhebeda0a3c5a7a.xn - p1ai'

  • 2
    text information is best given as text ( edit ) - aleksandr barakin
  • four
    try using requests module - everything works fine: import requests; html = requests.get("https://где-ударение.рф/в-слове-ногтя/").text import requests; html = requests.get("https://где-ударение.рф/в-слове-ногтя/").text - MaxU
  • one
    give the code so you can play it back - Eugene Dennis

0