Skip to content

Instantly share code, notes, and snippets.

View spikeein's full-sized avatar

Spike Ein spikeein

View GitHub Profile
@spikeein
spikeein / parse_cmb.py
Created March 1, 2022 16:26
招行信用卡邮件抓取
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)