In Python 3 when there is no
Then all text is Unicode.
So what see is what you get,what i mean bye that is that you can just copy the smart quotes
b
(bytes) b'hello'
.Then all text is Unicode.
So what see is what you get,what i mean bye that is that you can just copy the smart quotes
“
and replace.>>> p = paragraphs[0].text >>> print(p) With hits such as “Stay with Me” and “I’m not the Only One”, Sam Smith has become one of UK’s hottest singers. >>> >>> # Now is just copy smart quotes for line over and replace >>> print(p.replace('“', '').replace('”', '')) With hits such as Stay with Me and I’m not the Only One, Sam Smith has become one of UK’s hottest singers.Also using
.text
is shorter that get_text()
,they do the same.