This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import datetime | |
from imap_tools import MailBox, AND | |
def parse_html(html): | |
list_day = re.findall(re.compile('120%;">2022/(.*?) 您的消费明细如下:', re.S), html) | |
# print(list_day) | |
list_time = re.findall(re.compile("""<font face="Awesome Font" style="font-size:12px;line-height:120%;">(.*?)</font>""", re.S), html) |