Skip to content

Instantly share code, notes, and snippets.

@marcelo-reis
Last active May 9, 2019 23:58
Show Gist options
  • Save marcelo-reis/9837c979ce4678c79d376da720d30b22 to your computer and use it in GitHub Desktop.
Save marcelo-reis/9837c979ce4678c79d376da720d30b22 to your computer and use it in GitHub Desktop.
Python - Para abrir várias páginas web através da classe "webbrowser" lendo arquivo ".txt" com os endereços
import webbrowser
with open ('.../myscripts/myadress.txt') as f:
for url in f.readlines():
webbrowser.open(url)
@marcelo-reis
Copy link
Author

To open multiple web pages through the "webbrowser" class by reading the ".txt" file with the addresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment