便民 发表于 2018-8-4 06:29:15

python编写爬虫刷流量

# coding:utf-8  
importwebbrowser 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]
查看完整版本: python编写爬虫刷流量