Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'get_text' #10

Open
barl0g opened this issue Dec 11, 2024 · 4 comments
Open

AttributeError: 'NoneType' object has no attribute 'get_text' #10

barl0g opened this issue Dec 11, 2024 · 4 comments

Comments

@barl0g
Copy link

barl0g commented Dec 11, 2024

Что-то работать перестало. Раньше работало. Может я что-то не так делаю?

$ 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') )
@SuperZombi
Copy link
Owner

VPN?

@SuperZombi
Copy link
Owner

Ні. Знаєш чому? Тому що дзеркала просять вход.
{C200CDE1-2505-40F5-A6BC-D6C8B07C4C51}

@barl0g
Copy link
Author

barl0g commented Dec 12, 2024

VPN?

Нет. Зеркало.

@barl0g
Copy link
Author

barl0g commented Dec 12, 2024

Ні. Знаєш чому? Тому що дзеркала просять вход. {C200CDE1-2505-40F5-A6BC-D6C8B07C4C51}

Получается, что сейчас работает только с URL: hdrezka.ag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants