WEBSITE ALARM USING PYTHON PROJECT
import time
import webbrowser
Set_Alarm=input("Set the website Alarm as HH:MM:SS.SS(all in two digits) : ")
url=input("Enter the website you want to open")
Actual_Time=time.strftime("%I:%M:%S")
while(Actual_Time!=Set_Alarm):
print("the time is"+Actual_Time)
Actual_Time=time.strftime("%I:%M:%S")
time.sleep(2)
if(Actual_Time==Set_Alarm):
print("you should see your website now:-) ")
webbrowser.open(url)
Comments
Post a Comment