使用 python 发送 get 请求可以使用 Python 的内置库 urllib
。
下面是一个例子:
import urllib.request
url = 'https://www.example.com'
response = urllib.request.urlopen(url)
html = response.read()
print(html)
使用 python 发送 get 请求可以使用 Python 的内置库 urllib
。
下面是一个例子:
import urllib.request
url = 'https://www.example.com'
response = urllib.request.urlopen(url)
html = response.read()
print(html)