Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import webbrowser
  2. firefox = webbrowser.get('firefox')
  3. f = open ('C:\\Users\\test\\Desktop\\urls.txt','r')
  4. data = f.read()
  5. for urls in data.split('\n'):
  6.     firefox.open_new_tab(urls)
  7.  
  8.  
  9.   File "C:\PYTHON32\LIB\webbrowser.py", line 53, in get
  10.     raise Error("could not locate runnable browser")
  11. webbrowser.Error: could not locate runnable browser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement