I am trying to scrape the the movie rating from IMDB website.
However I am getting this error:
AttributeError: 'NoneType' object has no attribute 'text'
when using this code:
rating_sauce = urllib.request.urlopen('https://www.imdb.com/title/tt1596343/?ref_=tt_urv')
rating_soup = bs.BeautifulSoup(rating_sauce, 'html.parser')
#container = rating_soup.find('div', {'class':'ipc-button__text'})
rating = rating_soup.find('span', {'class':'AggregateRatingButton__RatingScore-sc-11129m0-1'}).text
print("Movie Rating::" + rating)