Skip to content

Commit

Permalink
select option for website and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Magdyz committed Feb 6, 2022
1 parent 3042e6b commit 977fcc8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion websiteScheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
page = f"https://www.{website}.com"
today = time.strftime('%X %x')

# asking which function to use wether to use one or five tabs option when opening a website

request = input('Type (1) if you want one new window or (2) for five tabs for the same website: ')
request = int(request)
#if request.isnumeric() != True:
# print("This is not a valid answer. I'll use the default which is one new window")
# request = 1
if request > 2 or request < 1:
print("This is not a valid answer. I'll use the default which is one new window")
request = 1




# Constantly check inputs for the time are numbers

while True:
Expand Down Expand Up @@ -85,5 +99,9 @@ def openFiveTabs():
time.sleep(3)

# call a function
openFiveTabs()
if request == 1:
openOneWebsite()
else:
openFiveTabs()


0 comments on commit 977fcc8

Please sign in to comment.