I need a tree representing an eshop, the nodes being eshop categories
tag--> category name
identifier--> category id
data--> category link (type string)
Can I print the data of the nodes? (since there is no data_property(attribute) I am aware of that I can call on a string to get the value of it)
tree = treelib.Tree()
tree.create_node(tag="main", identifier=0, data="main-url")
tree.create_node(tag="category1", identifier=1, parent=0, data="category1-url")
tree.create_node(tag="category2", identifier=2, parent=0, data="category2-url")
print(tree.show(stdout=False, data_property=???))`
I need a tree representing an eshop, the nodes being eshop categories
tag--> category name
identifier--> category id
data--> category link (type string)
Can I print the data of the nodes? (since there is no data_property(attribute) I am aware of that I can call on a string to get the value of it)
tree = treelib.Tree()
tree.create_node(tag="main", identifier=0, data="main-url")
tree.create_node(tag="category1", identifier=1, parent=0, data="category1-url")
tree.create_node(tag="category2", identifier=2, parent=0, data="category2-url")
print(tree.show(stdout=False, data_property=???))`