MCPcopy
hub / github.com/codelucas/newspaper / getText

Method getText

newspaper/parsers.py:211–213  ·  view source on GitHub ↗
(cls, node)

Source from the content-addressed store, hash-verified

209
210 @classmethod
211 def getText(cls, node):
212 txts = [i for i in node.itertext()]
213 return text.innerTrim(' '.join(txts).strip())
214
215 @classmethod
216 def previousSiblings(cls, node):

Callers 12

get_replacement_nodesMethod · 0.80
get_titleMethod · 0.80
extract_tagsMethod · 0.80
calculate_best_nodeMethod · 0.80
is_boostableMethod · 0.80
get_siblings_contentMethod · 0.80
get_siblings_scoreMethod · 0.80
is_highlink_densityMethod · 0.80
convert_to_textMethod · 0.80
add_newline_to_liMethod · 0.80
remove_empty_tagsMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected