I am scraping some HTML pages with python. The text in some spaces has Half space character (\u200c). When i use the text in a variable, every things is OK. The problem is when i add the text to a list, it shows '\u200c' instead of real Half space. what is the problem?
It will show '\u200c'
because it's what __repr__
method gives you. However, try printing it using print()
and you should get what you want, as print()
uses the __str__
magic method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With