import re


def extract_emails_from_page(soup):
	"""
		Returns a list of emails found in page. Using a regex to scan
	"""
	email_pattern = re.compile('([\w\-\.+]+@(\w[\w\-]+\.)+[\w\-]+)')
	try:
		page_content = str(soup)
	except:
		print('Error parsing page. Skipped\n')
		return []
	matches = email_pattern.findall(page_content)
	if matches:
		return [ match[0] for match in matches ]
	return []