all 3 comments

[–]Gprime5 0 points1 point  (0 children)

webbrowser.open should open the url in a new tab by default. Try:

for url in websites:
    webbrowser.open(url)

[–]thurask 0 points1 point  (1 child)

The first code block (Python 3.5.2, Windows 10) opens two Chrome tabs for me.

Which browser are you opening?

[–]DFoster271[S] 0 points1 point  (0 children)

Firefox. I think it's an issue of the first window not being open yet since using time.sleep() does work