Skip to content

Instantly share code, notes, and snippets.

@managedkaos
Created March 24, 2017 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save managedkaos/52a2aafacb6561e8420151ac0c7cae6d to your computer and use it in GitHub Desktop.
Save managedkaos/52a2aafacb6561e8420151ac0c7cae6d to your computer and use it in GitHub Desktop.
Print today and tomorrow
days = ['Monday','Tuesday','Wednesday','Thursday','Friday']
today = datetime.datetime.today().strftime('%A')
tomorrow = (datetime.date.today() + datetime.timedelta(days=1)).strftime('%A')
day = tomorrow
day_counter=0
for cell_menu_item in row('div',{'class':'cell_menu_item'}):
if day not in days[day_counter]:
day_counter += 1
continue
print day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment