while True: now = datetime.datetime.now() if now.weekday() == 5: if now.hour() == 10 and now.minute() == 30: webbrowser.open(url) elif now.hour() == 7 and now.minute == 0: webbrowser.open(url) time.sleep(1)
hour and minute are not methods, you do not need to call them.
hour
minute
if now.weekday() == 5: if now.hour == 10 and now.minute == 30: webbrowser.open(url) elif now.hour == 7 and now.minute == 0: webbrowser.open(url)
1.4m articles
1.4m replys
5 comments
57.0k users