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()

 

posted @ 2022-03-05 22:27  CanyingV  阅读(48)  评论(0编辑  收藏  举报