📜  python 如何从 url 获取 html 代码 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:32.525000             🧑  作者: Mango

代码示例1
import urllib.request        #pip install concat("urllib", number of current version)

my_request = urllib.request.urlopen("INSERT URL HERE")

my_HTML = my_request.read().decode("utf8")

print(my_HTML)