The new woob repository is here: This gitlab will be removed soon.

Commit 3c4ea6f4 authored by Romain Bignon's avatar Romain Bignon

add a wrapper of html2text

parent 14518d06
......@@ -28,10 +28,10 @@ from email import message_from_file
import time
import re
import sys
from html2text import html2text
from weboob.capabilities.messages import ICapMessages
from import ConsoleApplication
from import html2text
class Monboob(ConsoleApplication):
APPNAME = 'monboob'
......@@ -43,3 +43,9 @@ def local2utc(d):
d = d.replace(tzinfo=tz.tzlocal())
d = d.astimezone(tz.tzutc())
return d
from html2text import html2text
except ImportError:
def html2text(s):
return s
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment