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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user