Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email parsing via beautifulsoup #28

Merged
merged 3 commits into from Feb 12, 2017
Merged

Conversation

j6k4m8
Copy link
Collaborator

@j6k4m8 j6k4m8 commented Feb 11, 2017

  • Working MSF parser
  • working on robustifying ACLU.

@j6k4m8
Copy link
Collaborator Author

j6k4m8 commented Feb 12, 2017

Turns out I don't use BeautifulSoup for either — but could. For now, these seem to handle a few different cases (differently-forwarded emails, text-only emails, etc) better than bs4.

@j6k4m8
Copy link
Collaborator Author

j6k4m8 commented Feb 12, 2017

>>> c = charity.MSFParser(aclu_email)
>>> c.is_receipt()
False
>>> c = charity.ACLUParser(aclu_email)
>>> c.is_receipt()
True
>>> c.parse_email()

@dkleissa dkleissa self-assigned this Feb 12, 2017
@dkleissa dkleissa merged commit 9c01d2a into integration Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants