Cheug's Blog

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

Python正则采集邮箱脚本

2016-05-29 / Python / 1851 次围观 / 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.