We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b83607a commit 939e087Copy full SHA for 939e087
1 file changed
twitter_openapi_python/twitter_openapi_python/client.py
@@ -66,7 +66,8 @@ class TwitterOpenapiPython:
66
67
api_key = {
68
"Accept": "*/*",
69
- "AcceptEncoding": "gzip, deflate, br",
+ # "AcceptEncoding": "gzip, deflate, br",
70
+ # "AcceptEncoding": "deflate, br",
71
"AcceptLanguage": "en-US,en;q=0.9",
72
"CacheControl": "no-cache",
73
"Pragma": "no-cache",
@@ -150,7 +151,8 @@ def get_guest_client(self) -> TwitterOpenapiPythonClient:
150
151
"GET",
152
"https://twitter.com",
153
redirect=False,
- headers=self.browser_headers.copy() | {"Cookie": self.cookie_to_str(session)},
154
+ headers=self.browser_headers.copy()
155
+ | {"Cookie": self.cookie_to_str(session)},
156
)
157
158
find = re.findall(r'document.cookie="(.*?)";', res_2.data.decode())
0 commit comments