python 友情链接检查,python友情链接,# _*_ coding


# _*_ coding:utf-8 _*_#xiaohei.python.seo.call.me:)#win+python2.7.ximport urllib2,refor i, line in enumerate(open('link.txt')):    url_ = line.strip()    print i,line    html = urllib2.urlopen(url_).read()    cou = html.count('360buy.com' or 'jd.com')    if cou >= 0:        print '有'    else:        print '没有'    print "\\n\\n"#该片段来自于http://byrx.net

评论关闭