适用版本Python2 or Python3:模块python-whois
安装包地址:https://pypi.python.org/pypi/python-whois
教程地址:https://bitbucket.org/richardpenman/pywhois
安装:pip install python-whois
卸载:pip uninstall python-whois
使用方式:
import rec='sdsdaherf=sadasdada sdad123,21312!!!' pattern=re.compile('herf=(.*)') pattern.findall(c) a=re.findall('herf=(.*)', c) a 结果就是 Out[9]: ['sadasdada sdad123,21312!!!']指导邮箱地址就可以指导用户名和域名了,不用使用任何程序。你的邮箱地址就是这个邮箱用户名。
域名是@后面的内容,这个邮箱就是163.com。