request-get
import requests url = 'https://cyv.waosmart.com/' param = { 'start': 0, 'limit': 10 } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36" } resp = requests.get(url, params=param, headers=headers)
# resp.encoding = 'gbk' # 根据网页编码方式解码
print(resp.text)
print(resp.json())
resp.close()