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

Popular posts from this blog

java chapter11 practice question on abstruct class and interfaces

DAY 12 -AZURE DP900(Microsoft Azure Data Fundamentals: Explore non-relational data in Azure)

java exercise4