tweepy-self 1.4.0__tar.gz → 1.5.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tweepy-self
3
- Version: 1.4.0
3
+ Version: 1.5.1
4
4
  Summary: Twitter (selfbot) for Python!
5
5
  Author: Alen
6
6
  Author-email: alen.kimov@gmail.com
@@ -12,7 +12,7 @@ Requires-Dist: beautifulsoup4 (>=4,<5)
12
12
  Requires-Dist: better-proxy (==1.1.0)
13
13
  Requires-Dist: curl_cffi (==0.6.0b9)
14
14
  Requires-Dist: lxml (>=5,<6)
15
- Requires-Dist: pydantic (>=2,<3)
15
+ Requires-Dist: pydantic (>=1)
16
16
  Requires-Dist: pyotp (>=2,<3)
17
17
  Requires-Dist: python3-capsolver (>=0.9,<0.10)
18
18
  Requires-Dist: yarl (>=1,<2)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tweepy-self"
3
- version = "1.4.0"
3
+ version = "1.5.1"
4
4
  description = "Twitter (selfbot) for Python!"
5
5
  authors = ["Alen <alen.kimov@gmail.com>"]
6
6
  readme = "README.md"
@@ -12,11 +12,14 @@ curl_cffi = {version = "0.6.0b9", allow-prereleases = true}
12
12
  python3-capsolver = "^0.9"
13
13
  better-proxy = "1.1.0"
14
14
  beautifulsoup4 = "^4"
15
- pydantic = "^2"
15
+ pydantic = ">=1"
16
16
  lxml = "^5"
17
17
  pyotp = "^2"
18
18
  yarl = "^1"
19
19
 
20
+ [tool.poetry.group.dev.dependencies]
21
+ black = "^24"
22
+
20
23
  [build-system]
21
24
  requires = ["poetry-core"]
22
25
  build-backend = "poetry.core.masonry.api"
@@ -9,6 +9,7 @@ class BaseAsyncSession(requests.AsyncSession):
9
9
  - По умолчанию устанавливает версию браузера chrome120.
10
10
  - По умолчанию устанавливает user-agent под версию браузера chrome120.
11
11
  """
12
+
12
13
  proxy: Proxy | None
13
14
  DEFAULT_HEADERS = {
14
15
  "accept": "*/*",
@@ -25,14 +26,16 @@ class BaseAsyncSession(requests.AsyncSession):
25
26
  DEFAULT_IMPERSONATE = requests.BrowserType.chrome120
26
27
 
27
28
  def __init__(
28
- self,
29
- proxy: str | Proxy = None,
30
- **session_kwargs,
29
+ self,
30
+ proxy: str | Proxy = None,
31
+ **session_kwargs,
31
32
  ):
32
33
  self._proxy = None
33
34
  headers = session_kwargs["headers"] = session_kwargs.get("headers") or {}
34
35
  headers.update(self.DEFAULT_HEADERS)
35
- session_kwargs["impersonate"] = session_kwargs.get("impersonate") or self.DEFAULT_IMPERSONATE
36
+ session_kwargs["impersonate"] = (
37
+ session_kwargs.get("impersonate") or self.DEFAULT_IMPERSONATE
38
+ )
36
39
  super().__init__(**session_kwargs)
37
40
  self.proxy = proxy
38
41