How to read the html tag which is not reflecting in the beautiful soup object

56 views Asked by At

I am trying to scrape the pages of anime tv series for my side project and stuck with this small issue where I am not able to extract a complete div tag.

link: https://gogoanime.in/category/boruto-naruto-next-generations

I am trying to scrape this thing here: enter image description here

The code I am using is this:

from bs4 import BeautifulSoup


trialURL = 'https://gogoanime.in/category/boruto-naruto-next-generations' 
#completeAnimeList_df.URL[0]
page = simple_get(trialURL)
soup = BeautifulSoup(page,'html.parser')

#working on number of comments
divComment = soup.find('span', attrs={"class" : "comment-count"})
print(divComment.get_text)

I am getting a NoneType output after running the code. Please let me know what could be done.

0

There are 0 answers