MCPcopy Create free account
hub / github.com/SimplySecurity/SimplyEmail / genericClean

Method genericClean

Helpers/Parser.py:27–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 # A really good url clean by theHarvester at :
26 # https://raw.githubusercontent.com/killswitch-GUI/theHarvester/master/myparser.py
27 def genericClean(self):
28 self.InputData = re.sub('<em>', '', self.InputData)
29 self.InputData = re.sub('<b>', '', self.InputData)
30 self.InputData = re.sub('</b>', '', self.InputData)
31 self.InputData = re.sub('</em>', '', self.InputData)
32 self.InputData = re.sub('%2f', ' ', self.InputData)
33 self.InputData = re.sub('%3a', ' ', self.InputData)
34 self.InputData = re.sub('<strong>', '', self.InputData)
35 self.InputData = re.sub('</strong>', '', self.InputData)
36 self.InputData = re.sub('<tr>', ' ', self.InputData)
37 self.InputData = re.sub('</tr>', ' ', self.InputData)
38 self.InputData = re.sub('</a>', ' ', self.InputData)
39
40 for e in (',', '>', ':', '=', '<', '/', '\\', ';', '&', '%3A', '%3D', '%3C', '&#34', '"'):
41 self.InputData = string.replace(self.InputData, e, ' ')
42
43 # A really good url clean by theHarvester at :
44 # https://raw.githubusercontent.com/killswitch-GUI/theHarvester/master/myparser.py

Callers 15

get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95
get_emailsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected