I am trying to get to the element that contains the rating data, but I can't figure out how to traverse into it (image linked below). The span element for both the critic rating and audience rating is in the same class (mop-ratings-wrap\_\_percentage). I tried to get the elements by separately traversing into their respective divs ('mop-ratings-wrap\_\_half' and 'mop-ratings-wrap\_\_half audience-score') but I am getting this error:

```html
runfile('/Users/*/.spyder-py3/temp.py', wdir='/Users/*/.spyder-py3')
Traceback (most recent call last):

  File "/Users/*/.spyder-py3/temp.py", line 22, in <module>
    cr=a.find('span', attrs={'class':'mop-ratings-wrap__percentage'})

TypeError: find() takes no keyword arguments
```

Here is my code:

```html
# -*- coding: utf-8 -*-
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas as pd

driver = webdriver.Chrome("/Users/*/Downloads/chromedriver")

critics_rating=[]
audience_rating=[]
driver.get("https://www.rottentomatoes.com/m/bill_and_ted_face_the_music")

content = driver.page_source
soup = BeautifulSoup(content, "lxml")

for a in soup.find('div', attrs={'class':'mop-ratings-wrap__half'}):
      cr=a.find('span', attrs={'class':'mop-ratings-wrap__percentage'})
      critics_rating.append(cr.text)

for b in soup.find('div', attrs={'class':'mop-ratings-wrap__half audience-score'}):
      ar=b.find('span', attrs={'class':'mop-ratings-wrap__percentage'})
      audience_rating.append(ar.text) 

print(critics_rating)

```

I am following this article: <https://www.edureka.co/blog/web-scraping-with-python/#demo>

[And here is the data I want to extract](https://i.stack.imgur.com/NHRUI.jpg)