Python实现从url中提取域名的几种方法(2)
复制代码 代码如下: from tld import get_tld print "--"*40 for url in urls: try: print get_tld(url) except Exception as e: print "unkonw" 运行结果: 复制代码 代码如下: meiwen.me 100
精彩图集
精彩文章
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229