urllib cannot read https

后端 未结 4 660
温柔的废话
温柔的废话 2020-12-10 05:35

(Python 3.4.2) Would anyone be able to help me fetch https pages with urllib? I\'ve spent hours trying to figure this out.

Here\'s what I\'m trying to do (pretty bas

4条回答
  •  青春惊慌失措
    2020-12-10 05:51

    urllib.error.URLError: 
    

    The 'https and not https in the error message indicates that you did not try a http:// request but instead a 'https:// request which of course does not exist. Check how you construct your URL.

提交回复
热议问题