Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Open Multiple URLs

#!/usr/bin/env python3
"""
Customization:
You can convert this script to a command line interface
and add additional functionality.
"""
import webbrowser
import time


# what's new
links = [
    'https://mail.google.com',
    'https://github.com',
    'https://www.linkedin.com'
    ]

for i in links:
    webbrowser.open_new_tab(i)
    # give time to load the page
    time.sleep(5)
Source by www.nataliiabondarenko.com #
 
PREVIOUS NEXT
Tagged: #Open #Multiple #URLs
ADD COMMENT
Topic
Name
3+8 =