Cheug's Blog

当前位置:网站首页 / Python / 正文

Python正则采集邮箱脚本

2016-05-29 / Python / 1979 次围观 / 0 次吐槽 /
def regcontent(urlstr):
    respose=urllib.request.urlopen(urlstr)
    html=respose.read()
    f=re.compile(r'\d{3,12}@.{2,3}.com')
    items=f.findall(str(html))
    for item in items:
        print(item)


Powered By Cheug's Blog

Copyright Cheug Rights Reserved.