用python实现一个简单的刷浏览量小程序

话不多说,直接上代码

import webbrowser as web
import os
import time

IEPath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
web.register('IE', None, web.BackgroundBrowser(IEPath))
while 1:
    i = 0
    while i<1:
        web.get('IE').open('https://blog.csdn.net/thewaysofar/article/details/79209239', new=1, autoraise=True)
        web.get('IE').open('https://blog.csdn.net/TheWaySoFar/article/details/79195479',new=1,autoraise=True)
        i=i+1;
        time.sleep(120)
    else:
        os.system('taskkill /F /IM chrome.exe')

 

 

 

你可能感兴趣的:(python初学)