使用python 自带的工具库,可以直接打开浏览页面,本程序只是用于做一个测试
用途:可以用于一些重复打开网页的工作,刷点击率的。
缺点:由于有的网页可能会限制IP,因此本程序可能并不能增加访问量或者点击率,可以通过代理来实现。
# coding:utf-8
import webbrowser as web
import os
import time
import random
print u'开始测试了哈'
count=random.randint(5,20)
print u'机数为',count
j=0
while j<count:
i=0;
while i<=10:
web.open_new_tab("http://blog.csdn.net/qiqiyingse/article/details/51798833")
i=i+1
time.sleep(1)
else:
time.sleep(2)
os.system('taskkill /f /IM Chrome.exe')
print u"close broswer %d times "%(j)
j = j+1