1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-31 07:42:51 -05:00

Add user-agent to guest_token request (#1359)

This commit is contained in:
cmj
2026-01-29 08:27:41 -08:00
committed by GitHub
parent a92e79ebc3
commit a45227b883

View File

@@ -21,7 +21,10 @@ def auth(username, password, otp_secret):
guest_token = requests.post(
"https://api.twitter.com/1.1/guest/activate.json",
headers={'Authorization': bearer_token}
headers={
'Authorization': bearer_token,
"User-Agent": "TwitterAndroid/10.21.0-release.0 (310210000-r-0) ONEPLUS+A3010/9"
}
).json().get('guest_token')
if not guest_token: