python 으로 간단 한 브러시 탐색 프로그램 구현

658 단어 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')

 
 

좋은 웹페이지 즐겨찾기