mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Add user-agent to guest_token request (#1359)
This commit is contained in:
parent
a92e79ebc3
commit
a45227b883
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ def auth(username, password, otp_secret):
|
||||||
|
|
||||||
guest_token = requests.post(
|
guest_token = requests.post(
|
||||||
"https://api.twitter.com/1.1/guest/activate.json",
|
"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')
|
).json().get('guest_token')
|
||||||
|
|
||||||
if not guest_token:
|
if not guest_token:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue