tweepy-self 1.10.0b8__tar.gz → 1.10.0b9__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/PKG-INFO +1 -1
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/pyproject.toml +1 -1
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/client.py +28 -19
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/README.md +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/__init__.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/__init__.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/__init__.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/base.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/config.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/enum.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/serializer.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/fun_captcha.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/account.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/base/__init__.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/base/client.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/base/session.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/enums.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/errors.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/models.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/__init__.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/file.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/html.py +0 -0
- {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/other.py +0 -0
@@ -1658,28 +1658,37 @@ class Client(BaseHTTPClient):
|
|
1658
1658
|
flow_token, subtasks = await self._login_enter_password(flow_token)
|
1659
1659
|
flow_token, subtasks = await self._account_duplication_check(flow_token)
|
1660
1660
|
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
)
|
1667
|
-
|
1668
|
-
try:
|
1669
|
-
# fmt: off
|
1670
|
-
flow_token, subtasks = await self._login_acid(flow_token, self.account.email)
|
1671
|
-
# fmt: on
|
1672
|
-
except HTTPException as exc:
|
1673
|
-
if 399 in exc.api_codes:
|
1674
|
-
logger.warning(
|
1675
|
-
f"(auth_token={self.account.hidden_auth_token}, id={self.account.id}, username={self.account.username})"
|
1676
|
-
f" Bad email!"
|
1661
|
+
for subtask in subtasks:
|
1662
|
+
if subtask.id == "LoginAcid":
|
1663
|
+
if not self.account.email:
|
1664
|
+
raise TwitterException(
|
1665
|
+
f"Failed to login. Task id: LoginAcid." f" No email!"
|
1677
1666
|
)
|
1667
|
+
|
1668
|
+
if subtask.primary_text == "Check your email":
|
1678
1669
|
raise TwitterException(
|
1679
|
-
f"Failed to login. Task id: LoginAcid.
|
1670
|
+
f"Failed to login. Task id: LoginAcid."
|
1671
|
+
f" Email verification required!"
|
1672
|
+
f" No IMAP handler for this version of library :<"
|
1680
1673
|
)
|
1681
|
-
|
1682
|
-
|
1674
|
+
|
1675
|
+
try:
|
1676
|
+
# fmt: off
|
1677
|
+
flow_token, subtasks = await self._login_acid(flow_token, self.account.email)
|
1678
|
+
# fmt: on
|
1679
|
+
except HTTPException as exc:
|
1680
|
+
if 399 in exc.api_codes:
|
1681
|
+
logger.warning(
|
1682
|
+
f"(auth_token={self.account.hidden_auth_token}, id={self.account.id}, username={self.account.username})"
|
1683
|
+
f" Bad email!"
|
1684
|
+
)
|
1685
|
+
raise TwitterException(
|
1686
|
+
f"Failed to login. Task id: LoginAcid. Bad email!"
|
1687
|
+
)
|
1688
|
+
else:
|
1689
|
+
raise
|
1690
|
+
|
1691
|
+
subtask_ids = {subtask.id for subtask in subtasks}
|
1683
1692
|
|
1684
1693
|
if "LoginTwoFactorAuthChallenge" in subtask_ids:
|
1685
1694
|
if not self.account.totp_secret:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|