BeautifulSoup error

Link ti project:

I cannot get around an error in the cocoa BeautifulSoup project. The error appears in the following:
cocoa_percent = int(td.get_text().strip(%))

in the context of:

cocoa_percents =

for td in cocoa_percent[1:]:
cocoa_percent = int(td.get_text().strip(%))

can anyone see what I am doing wrong?

Hi Chris,
I’ m not sure but I think that in the strip method your syntax is wrong.
It should be the following:
cocoa_percent = int(td.get_text().strip("%"))
Hope it helps!