import
requests

username = '----'
password = '----'

payload = {
'id': username,
'pw': password
}

with requests.Session() as s:
r = s.post("https://nid.naver.com/nidlogin.login", data=payload)
if r.status_code == 200:
print("Successed to send data!")
#print(r.text)

if "https://nid.naver.com/login/sso/finalize.nhn" in str(r.content):
print("login successed")
else:
print("login failed")

else:
print("Failed to send data")






위 코드 뭐가 잘못되어서 자꾸 로그인이 안될까??

파이썬이랑 http 공부 어제 시작해서 잘 모르겠다..

어제부터 이거떄문에 잠이 안오드라