MCPcopy
hub / github.com/Jack-Cherish/python-spider / replace

Method replace

zhengfang_system_spider/spider.py:31–37  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

29 rmtime2 = re.compile('<td class="noprint" align="Center".*?>.*?</td>')
30
31 def replace(self, x):
32 x = re.sub(self.rma, ' ', x)
33 x = re.sub(self.rmtb, '---', x)
34 x = re.sub(self.rmtr, ' ', x)
35 x = re.sub(self.rmtime1, '\n', x)
36 x = re.sub(self.rmtime2, '', x)
37 return x.strip()
38
39
40def Getgrade(response):

Callers 15

GetClassMethod · 0.95
baiduwenku.pyFile · 0.80
runMethod · 0.80
get_imagesMethod · 0.80
runMethod · 0.80
DownloaderMethod · 0.80
parse_docFunction · 0.80
parse_txtFunction · 0.80
parse_otherFunction · 0.80
get_download_urlFunction · 0.80
download.pyFile · 0.80
ReadCommentsAcfunFunction · 0.80

Calls

no outgoing calls

Tested by 1

get_imagesMethod · 0.64