nateshmbhat / pyYify

This is a python library used to get the Top seeded torrents at any given time and get the entire movie details and ratings . Its also useful to search for any movie using different parameters and obtain their magnet link or torrent file of any preferred quality.
MIT License
58 stars 19 forks source link

'NoneType' object has no attribute 'find_all' #5

Open Monsieurvishal opened 4 years ago

Monsieurvishal commented 4 years ago

I ran this code ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: from pyYify import yify movies_list = yify.search_movies('avengers', '720p' , 8.0 , 'Romance') movies_list = yify.get_top_seeded_torrents() ; for movie in movies_list: movie.getinfo() ; movie1 = movies_list[0]

torrent1 = movie1.torrents[0]

print("Magnet link = " , torrent1.magnet) ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Error ::::::::::::

AttributeError Traceback (most recent call last)

in 1 from pyYify import yify 2 movies_list = yify.search_movies('avengers', '720p' , 8.0 , 'Romance') ----> 3 movies_list = yify.get_top_seeded_torrents() ; 4 for movie in movies_list: 5 movie.getinfo() ; ~\Anaconda3\New\lib\site-packages\pyYify\yify.py in get_top_seeded_torrents() 198 199 soup = BeautifulSoup(get(homepage , timeout=3).text , 'html.parser') ; --> 200 topseeds = soup.find(id="topseed").find_all('a'); 201 202 top_torrents = [] AttributeError: 'NoneType' object has no attribute 'find_all'
MrMohitG29 commented 4 years ago

Same here bro . I am getting the same error

mands2002 commented 4 years ago

Same here. for Yify.get_top_seeded_torrents()

aminPial commented 3 years ago

same here