File tree Expand file tree Collapse file tree 6 files changed +7
-14
lines changed Expand file tree Collapse file tree 6 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 6
6
lxml
7
7
webvtt-py
8
8
m3u8
9
- git+https://github.com/a-j-albert/ Js2Py---supports-python -3.13
9
+ Js2Py-3.13
Original file line number Diff line number Diff line change 5
5
lxml
6
6
webvtt-py
7
7
m3u8
8
- js2py ; python_version < '3.12'
9
- git+https://github.com/a-j-albert/Js2Py---supports-python-3.13.git; python_version >= '3.12'
8
+ Js2Py-3.13
Original file line number Diff line number Diff line change 1
1
import re
2
- from sys import version_info
3
2
4
3
from setuptools import setup
5
4
10
9
version = re .findall (r"__version__ = '(.+)'" , f .read ())[0 ]
11
10
12
11
13
- if version_info >= (3 , 12 , 0 ):
14
- js2py_version = 'js2py @ git+https://github.com/a-j-albert/Js2Py---supports-python-3.13.git'
15
- else :
16
- js2py_version = 'js2py'
17
-
18
-
19
12
setup (
20
13
name = 'twikit' ,
21
14
version = version ,
27
20
'lxml' ,
28
21
'webvtt-py' ,
29
22
'm3u8' ,
30
- js2py_version
23
+ 'Js2Py-3.13'
31
24
],
32
25
python_requires = '>=3.8' ,
33
26
description = 'Twitter API wrapper for python with **no API key required**.' ,
Original file line number Diff line number Diff line change 7
7
A Python library for interacting with the Twitter API.
8
8
"""
9
9
10
- __version__ = '2.3.1 '
10
+ __version__ = '2.3.2 '
11
11
12
12
import asyncio
13
13
import os
Original file line number Diff line number Diff line change @@ -399,6 +399,7 @@ async def login(
399
399
ui_metrics_response = solve_ui_metrics (
400
400
await self ._ui_metrics ()
401
401
)
402
+ print (ui_metrics_response )
402
403
else :
403
404
ui_metrics_response = ''
404
405
Original file line number Diff line number Diff line change 1
1
import re
2
2
3
- import js2py
3
+ import js2py_
4
4
5
5
from .dom import MockDocument
6
6
@@ -15,7 +15,7 @@ def solve_ui_metrics(ui_metrics: str) -> str:
15
15
inner_function = match .group (1 )
16
16
# Replace '==' with '===' to ensure proper object comparison in js2py
17
17
inner_function = EQUAL_PATTERN .sub (r'\1===\2' , inner_function )
18
- context = js2py .EvalJs ()
18
+ context = js2py_ .EvalJs ()
19
19
context .document = MockDocument ()
20
20
function = 'function main()' + inner_function
21
21
context .eval (function )
You can’t perform that action at this time.
0 commit comments