Skip to content

Commit 396aba3

Browse files
committed
Fixed [BUG] TypeError: extract_user_gql() got an unexpected keyword argument 'update_headers' #2266
1 parent bb91a75 commit 396aba3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

instagrapi/mixins/user.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,14 @@ def user_info_by_username_gql(self, username: str) -> User:
168168
"Accept-Language": "en-US,en;q=0.9",
169169
"Priority": "u=1, i",
170170
}
171-
update_headers = False
172171
data = extract_user_gql(
173172
json.loads(
174173
self.public_request(
175174
f"https://www.instagram.com/api/v1/users/web_profile_info/?username={username}",
176175
headers=temporary_public_headers,
176+
update_headers=False,
177177
)
178-
)["data"]["user"],
179-
update_headers=update_headers,
178+
)["data"]["user"]
180179
)
181180
return data
182181

0 commit comments

Comments
 (0)