Python 简单爬虫

import os
import time
import webbrowser as web
import random
count = random.randint(20,40)
j = 0 while j < count:
i = 0
while i <= 5:
web.open_new_tab('http://www.cnblogs.com/evilxr/p/3764287.html')
i = i + 1
time.sleep(1) #浏览器暂停1秒
else:
os.system('killall firefox') #关闭浏览器
j = j + 1
print j,'times closing Browser!'
上一篇:linux下svn(subversion)服务端添加工程及配置权限


下一篇:ie6下常见的bug 调整页面兼容性