Skip to content

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

@Monsieurvishal

Description

@Monsieurvishal

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions