Created
August 26, 2024 17:07
-
-
Save alonsoir/6a418f82d17c657cccc5e7967391b904 to your computer and use it in GitHub Desktop.
a tool to open links in your browser...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webbrowser | |
with open('links.txt') as file: | |
links = file.readlines() | |
for link in links: | |
link = link.strip() # Remove any whitespace or newline characters | |
print(link) | |
webbrowser.open(link) # Use the actual link, not the string 'link' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment