NavigableString object, used to manipulate strings, such as "Page title" and "This is paragraph".
http://www.crummy.com/software/BeautifulSoup/bs3/documentation.zh.html
The official does not have a detailed description of this object, but during use it was discovered that it is actually an inherited subclass of Python's str object, and there is actually no difference. I wonder what problems the poster encountered with this?
NavigableString is understood literally as a traversable string, and is one of the four types BeautifulSoup of tag|NavigableString|BeautifulSoap|Comment objects.
NavigableString object, used to manipulate strings, such as "Page title" and "This is paragraph". http://www.crummy.com/software/BeautifulSoup/bs3/documentation.zh.html
The official does not have a detailed description of this object, but during use it was discovered that it is actually an inherited subclass of Python's str object, and there is actually no difference.
I wonder what problems the poster encountered with this?
NavigableString
is understood literally as a traversable string, andis one of the four types
BeautifulSoup
oftag|NavigableString|BeautifulSoap|Comment
objects.