':param domain: Indicates what email addresses I want to retrieve.
All are returned if the domain is not set.
:return: A list of email accounts that are inside the document.'

def get_emails(self, domain=None):

    if domain:
        return [i for i in self._emails if (domain == i.split('@')[1])]
    else:
        return self._emails
