MCPcopy Index your code
hub / github.com/GeneralNewsExtractor/GeneralNewsExtractor / remove_node

Function remove_node

gne/utils.py:71–79  ·  view source on GitHub ↗

this is a in-place operation, not necessary to return :param node: :return:

(node: HtmlElement)

Source from the content-addressed store, hash-verified

69
70
71def remove_node(node: HtmlElement):
72 """
73 this is a in-place operation, not necessary to return
74 :param node:
75 :return:
76 """
77 parent = node.getparent()
78 if parent is not None:
79 parent.remove(node)
80
81
82def drop_tag(node: HtmlElement):

Callers 2

normalize_nodeFunction · 0.85
remove_noise_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected