Skip to content

Commit

Permalink
add proxy for account
Browse files Browse the repository at this point in the history
  • Loading branch information
Zkuns committed Feb 28, 2024
1 parent 4cb5c78 commit 1f0cfec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twitter/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def gql(self, method: str, operation: tuple, variables: dict, features: dict = O
'features': features,
'variables': Operation.default_variables | variables
}
if self.proxies:
self.session.proxies.update(self.proxies)
if method == 'POST':
data = {'json': params}
else:
Expand Down

0 comments on commit 1f0cfec

Please sign in to comment.