converting NavigableString to unicode string
There should not be any problem just using python's str() method on the navigable string object you have. From my experience with NavigableString's they are already in unicode so if you want a string on which .lower will work then you need to cast it to a python string (UTF-8) then recast it back to unicode.
When I run the following code:
if substr in movie.lowercase:
I get the following error
AttributeError: 'NavigableString' object has no attribute 'lowercase'
movie is from here:
movie = row.td.div.h4.string
I tried to change it to (without success)
movie = row.td.div.h4.string.string
or
movie = unicode(row.td.div.h4.string)
Do you know how to convert NavigableString to normal unicode string with lowercase method?