Skip to content

Instantly share code, notes, and snippets.

@timbec
Forked from sposterkil/refreshUrl.py
Created August 1, 2020 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timbec/6d9cb07a679560382bf6b8da9b5c1eeb to your computer and use it in GitHub Desktop.
Save timbec/6d9cb07a679560382bf6b8da9b5c1eeb to your computer and use it in GitHub Desktop.
A little python script to refresh a given URL every 10 seconds
#! /usr/bin/env python3
import webbrowser
from time import sleep
url = input('Input the URL to reload, including "http://: ')
while True:
print("refreshing...")
webbrowser.open(url, new=0)
sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment