asyncdefemails(self):await self.genericClean()# Local part is required, charset is flexible.# https://tools.ietf.org/html/rfc6531 (removed * and () as they provide FP mostly)
reg_emails = re.compile(r'[a-zA-Z0-9.\-_+#~!$&\',;=:]+'+'@'+'[a-zA-Z0-9.-]*'+ self.word.replace('www.',''))
self.temp = reg_emails.findall(self.results)
emails =await self.unique()
true_emails ={str(email)[1:].lower().strip()iflen(str(email))>1andstr(email)[0]=='.'elselen(str(email))>1andstr(email).lower().strip()for email in emails}# if email starts with dot shift email string and make sure all emails are lowercasereturn true_emails
asyncdefurls(self):
found = re.finditer(r'(http|https)://(www\.)?trello.com/([a-zA-Z0-9\-_\.]+/?)*', self.results)
urls ={match.group().strip()for match in found}return urls
邮箱async def emails(self): await self.genericClean() # Local part is required, charset is flexible. # https://tools.ietf.org/html/rfc6531 (removed * and () as they provide FP mostly) reg_emails = re.compile(r'[a-zA-Z0-9.\-_+