Answer the question
In order to leave comments, you need to log in
SSL Python How to get a webpage?
You need to get the encrypted web page in its normal form
. There is such a code:
def get(src):
context=ssl._create_unverified_context()
with urlopen(src,context=context) as site:
return site.read().decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 102: invalid continuation byte
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question