This is the partial code I am working where I am trying to retrieve the genres of movies.
genres = tr.find('span', 'genre').find_all('a')
genres = [g.contents[0] for g in genres]
print genres
[u'Animation']
[u'Comedy']
[u'Comedy', u'Romance']
I want to remove those u prefix.
Desired output:
['Animation']
['Comedy']
['Comedy', 'Romance']