Quick reference
You can view the following references to get an overview of creating the following objects:
BeautifulSoup
soup = BeautifulSoup(string)
soup = BeautifulSoup(string,features="xml") #for xml
Tag
tag = soup.tag #accessing a tag
tag.name #Tag name
tag['attribute'] #Tag attribute
NavigableString
soup.tag.string #get Tag's string