Hi I’m trying to build a webscraping tool for top 250 IMDB movies. However, When i try to retrieve censor board rating I’m not able to populate the result to some of the movies. Please help

I’m stuck at the point where I cannot fully import the censor board values.


moviePage_soup = soup(moviePage, 'html.parser')
tpList['Censor board rating']=rtgrd[1].strip()

I’m getting the exact result for some movies but in some movies I’m getting a whitespace. In the current scenario I should get R but the output is whitespace.