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.
Files changed (23) hide show
  1. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/PKG-INFO +1 -1
  2. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/pyproject.toml +1 -1
  3. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/client.py +28 -19
  4. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/README.md +0 -0
  5. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/__init__.py +0 -0
  6. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/__init__.py +0 -0
  7. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/__init__.py +0 -0
  8. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/base.py +0 -0
  9. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/config.py +0 -0
  10. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/enum.py +0 -0
  11. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/core/serializer.py +0 -0
  12. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/_capsolver/fun_captcha.py +0 -0
  13. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/account.py +0 -0
  14. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/base/__init__.py +0 -0
  15. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/base/client.py +0 -0
  16. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/base/session.py +0 -0
  17. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/enums.py +0 -0
  18. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/errors.py +0 -0
  19. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/models.py +0 -0
  20. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/__init__.py +0 -0
  21. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/file.py +0 -0
  22. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/html.py +0 -0
  23. {tweepy_self-1.10.0b8 → tweepy_self-1.10.0b9}/twitter/utils/other.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tweepy-self
3
- Version: 1.10.0b8
3
+ Version: 1.10.0b9
4
4
  Summary: Twitter (selfbot) for Python!
5
5
  Home-page: https://github.com/alenkimov/tweepy-self
6
6
  Author: Alen
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tweepy-self"
3
- version = "1.10.0.b8"
3
+ version = "1.10.0.b9"
4
4
  description = "Twitter (selfbot) for Python!"
5
5
  authors = ["Alen <alen.kimov@gmail.com>"]
6
6
  readme = "README.md"
@@ -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
- subtask_ids = {subtask.id for subtask in subtasks}
1662
- if "LoginAcid" in subtask_ids:
1663
- if not self.account.email:
1664
- raise TwitterException(
1665
- f"Failed to login. Task id: LoginAcid. No email!"
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. Bad email!"
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
- else:
1682
- raise
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