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

Method split

newspaper/utils.py:78–81  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

76 self.pattern = re.compile(pattern)
77
78 def split(self, string):
79 if not string:
80 return []
81 return self.pattern.split(string)
82
83
84class StringReplacement(object):

Callers 15

candidate_wordsMethod · 0.80
is_valid_bodyMethod · 0.80
set_meta_keywordsMethod · 0.80
get_available_languagesFunction · 0.80
remove_argsFunction · 0.80
valid_urlFunction · 0.80
url_to_filetypeFunction · 0.80
split_wordsFunction · 0.80
parse_bylineMethod · 0.80
split_titleMethod · 0.80
get_meta_dataMethod · 0.80
get_category_urlsMethod · 0.80

Calls

no outgoing calls

Tested by 2

get_base_domainFunction · 0.64
test_valid_urlsMethod · 0.64