Skip to content

Commit

Permalink
"fix: status 201: public request ...."
Browse files Browse the repository at this point in the history
  • Loading branch information
rockfly830 committed Aug 4, 2024
1 parent 2f327b7 commit f758c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagrapi/mixins/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def user_info_by_username_gql(self, username: str) -> User:
An object of User type
"""
username = str(username).lower()
return extract_user_gql(self.public_a1_request(f"/{username!s}/")["user"])
return extract_user_gql(self.private_request(f"users/web_profile_info/?username={username!s}")["data"]["user"])

def user_info_by_username_v1(self, username: str) -> User:
"""
Expand Down

0 comments on commit f758c46

Please sign in to comment.