alfonsrv / mail-parser-reply Goto Github PK
View Code? Open in Web Editor NEW๐ง Mail reply parser library for Python with multi-language support
Home Page: https://pypi.org/project/mail-parser-reply/
License: MIT License
๐ง Mail reply parser library for Python with multi-language support
Home Page: https://pypi.org/project/mail-parser-reply/
License: MIT License
Hi,
First of all, thank you for the great work you did on this package.
I'm coming from the node world, and after spending some time on looking for 'the-best-solution' (free & open-source) to parse email, with their contents (replies), i found this one, and I think this offers great extensibility.
I was looking at the code, pretty-clean ! Wondering why some test cases are commented tho?
Thanks in advance.
I have a function where I am calling your library. By simple copying your example (even using the "foobar" as data) I am getting the following error:
mail_message = EmailReplyParser.read(text=mail_body, languages=languages) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: EmailReplyParser.read() got an unexpected keyword argument 'languages'
Function
`def beautify_body(body):
# Remove HTML code
soup = BeautifulSoup(body, 'html.parser')
body = soup.get_text()
mail_body = 'foobar'; languages = ['en', 'de']
mail_message = EmailReplyParser.read(text=mail_body, languages=languages)
print(mail_message.replies)
return body`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.