The code seems correct, but I'm getting errors. I've tried installing Beautiful Soup, and it appears to be fine. Except for the error message from my code:
from bs4 import BeautifulSoup