import urllib.request with urllib.request.urlopen('https://www61.atwiki.jp/javadsge/pages/6530.html') as response: html = response.read() print(html)