I\'ve been using BeautifulSoup on and off for a few years, and I still get tripped up from time to time. I put together this code.
from bs4 import BeautifulSoup