You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Что-то работать перестало. Раньше работало. Может я что-то не так делаю?
$ python test.py
Traceback (most recent call last):
File "/home/user/www/hdrezka/test.py", line 6, in <module>
print(rezka.name)
File "/home/user/miniconda3/lib/python3.10/functools.py", line 981, in __get__
val = self.func(instance)
File "/home/user/miniconda3/lib/python3.10/site-packages/HdRezkaApi/__init__.py", line 46, in name
return self.soup.find(class_="b-post__title").get_text().strip()
AttributeError: 'NoneType' object has no attribute 'get_text'
Вот так тестировал.
$ cat test.py
from HdRezkaApi import *
url = "http://<hdrezka_url>/films/action/6402-krikuny-1995.html"
rezka = HdRezkaApi(url)
print(rezka.name)
print( rezka.translators )
print( rezka.getStream()('720p') ) # if movie
print( rezka.getStream('1', '1')('720p') )
The text was updated successfully, but these errors were encountered:
Что-то работать перестало. Раньше работало. Может я что-то не так делаю?
Вот так тестировал.
The text was updated successfully, but these errors were encountered: