Chapter 6 Data Types

type(tag.string) # A NavigableString is just like a Python Unicode string, except that it also supports some of the features described in Navigating the tree and Searching the tree. You can convert a NavigableString to a Unicode string with unicode(): unicode_string = unicode(tag.string) unicode_string ................
................