寫了一個登入github再抓回資料
但好像沒登入到
import requests
r = requests.Session()
payload = {
'commit': 'Sign in',
'authenticity_token':
'TnPi44mFGkDvZY7Uajst7GDI6lztKx0yTcgNYg+1ySbQrUF+ct0QXZjb4498kmHb8QRiyv/3jLC4rnjtAN2vCQA==',
'ga_id': '1755323583.1587010508',
'login': 'githubxx',
'password': 'githubxxxx',
'webauthn-support': 'supported',
'webauthn-iuvpaa-support': 'supported',
'return_to': '',
'required_field_9b04': '',
'timestamp': '1591516845351',
'timestamp_secret':
'c5794095e08e69d08e7e28823fe10a90a71bf7b6cb7b8c223ae5e828feac2a4f'
}
r1 = r.post('https://github.com/session', payload)
r2 = r.get('https://github.com/')
print(r2.text)
請教一下哪裡出問題