python编写爬虫刷流量
# coding:utf-8importwebbrowser as web
importtime
importos
importrandom
count = random.randint(2,4)
j = 0
while j < count:
i = 0
while i <= 5:
web.open_new_tab('http://www.baidu.com')
i = i + 1
time.sleep(1)
else:
os.system('taskkill /F /IM iexplore.exe')
print j, 'times closint '
页:
[1]