We use Bookmarks to remember the important websites which we think we will use them very often in future. Here’s a simple python code which takes the URL of the website as its first input and the time you want to open it as the second input. As the time reaches your given value of the time, it’ll open the URL that you requested in the web browser automatically. In this code, we’ll import two python modules – Time and Webbrowser.
Python3
import time
import webbrowser
Set_Alarm = input ( "Set the website alarm as H:M:S:" )
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( 1 )
if (Actual_Time = = Set_Alarm):
print ( "You should see your webpage now :-)" )
webbrowser. open (url)
|
You can contribute to the code by going here. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks. You can contribute to the code by going here.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
07 Oct, 2022
Like Article
Save Article