fmhsong/api/getCookie.py

13 lines
346 B
Python
Raw Normal View History

2022-05-20 11:21:39 +00:00
import requests,json
def main():
cookies=[""]
session=requests.session()
info={"phone":"","md5_password":cookies[0]}
cookie=json.loads(session.post("https://music-netease.vercel.app/login/cellphone",data=info).text)["cookie"]
with open("cookie.conf","w+") as fp:
fp.write(cookie)
if __name__=="__main__":
main()