Automate Work: Opening Websites with Python + Webbrowser Tutorial

In this simple tutorial I'll show you how to open several websites with one click using a few lines of Python and the Webbrowser module. This is a good start if you're looking to automate different tasks like logging into websites, sending out emails, messages or automate almost any repetitive task!

# ๐ŸŒด Goal: Automate opening websites

# Steps:
# 1. Make a program that opens a list of websites
import webbrowser
import time

# Create the function
def openUrls(urls):

# 2. List the websites we want to open
urls = [

# 3. Run the program
for url in urls:

Official documentation: