Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: python vim auto indent on paste 
Python :: python basics 
Python :: add row to dataframe 
Python :: flattern in keras 
Python :: lru_cache 
Python :: Generate hashed passwords for ansible 
Python :: python replace negative infinity 
Python :: run a for loop in python 
Python :: every second value python 
Python :: Merge two Querysets in Python Django while preserving Queryset methods 
Python :: python looping over a list 
Python :: SciPy Spatial Data 
Python :: random seed python 
Python :: how to define a functio in python 
Python :: keras name model 
Python :: read one column pandas 
Python :: python random.sample 
Python :: Split a list based on a condition 
Python :: python dataframe show row 
Python :: how to delete a column in pandas dataframe 
Python :: flask orm update query 
Python :: print torch model python 
Python :: deleting a tuple in python 
Python :: mixpanel export api 
Python :: insert into string python 
Python :: np logical not 
Python :: destory image in pygame 
Python :: how to create fastapi 
Python :: pandas print groupby 
Python :: pandas filter rows by column value regex 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =