We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ed7eca commit b6d8629Copy full SHA for b6d8629
datagather_modules/crawl_processor.py
@@ -35,10 +35,11 @@ def contact_mail_gather(url):
35
for i in soup.find_all(href=re.compile("mailto")):
36
i.encode().decode()
37
mails.append(i.string)
38
+ mails = [mail for mail in mails if mail is not None]
39
if (not mails) or (mails is None):
40
return 'No contact e-mails were found'
41
else:
- return mails
42
+ return ', '.join(map(str, mails))
43
except requests.RequestException as e:
44
print(Fore.RED + "Error while gathering e-mails. Reason: {}".format(e))
45
pass
0 commit comments