컴퓨터2012. 8. 11. 02:13

보통 파이썬에서 웹브라우져를 띄우는 방법은 간단히 생각나는건. 


>>import os

>>os.system('explorer http://blindfish.tistory.com')


이러한 방법이 있지만 이런경우 특정 웹브라우저에 한정되기 마련이다. 

그래서 다음과 같은 방법을 쓴다. 


>>import webbrowser

>>url = 'http://blindfish.tistory.com'

>>webbrowser.open(url)


대충 이러한 방법들이군요.. 나중에 상당히 쓸만할듯.. 

Posted by blindfish