Python入门学习:网络刷博器爬虫
- import webbrowser as web
- import time
- import os
- import random
- count = random.randint(5,7)
- j=0
- while j<=count:
- i=0
- while i<=8 :
- web.open_new_tab('网址') #网址自己填入
- i=i+1
- time.sleep(0.8)
- else:
- os.system('taskkill /F /IM chrome.exe')
- print j,'time webbrower closed'
- j=j+1
有什么问题可以联系我,大家一起研究,共同进步。