37,721
社区成员
发帖
与我相关
我的任务
分享
import requests
headers = {"Content-Type": "Application/JSON"}
auth = {"username": “user", "password": "pass"}
auth_json = json.dumps(auth)
url = "http://cn.morningstar.com"
s = requests.Session()
s.post(url, data=auth_json, headers=headers)