Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_nodes
Method · 0.80
get_title
Method · 0.80
extract_tags
Method · 0.80
calculate_best_node
Method · 0.80
is_boostable
Method · 0.80
get_siblings_content
Method · 0.80
get_siblings_score
Method · 0.80
is_highlink_density
Method · 0.80
is_table_and_no_para_exist
Method · 0.80
convert_to_text
Method · 0.80
add_newline_to_li
Method · 0.80
remove_empty_tags
Method · 0.80
Calls
1
join
Method · 0.80
Tested by
no test coverage detected