Skip to content

Commit

Permalink
add date to txt
Browse files Browse the repository at this point in the history
  • Loading branch information
medsagou committed Dec 27, 2023
1 parent 13132b9 commit 6b3273b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/outlook/Interaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import random
import time
import os
from datetime import datetime

from selenium import webdriver
from selenium.webdriver.common.by import By
Expand Down Expand Up @@ -275,7 +276,7 @@ def main(self, driver = "", email="", password=""):
self.driver.get(href_value)
print("saving account: " + str(email) + ":" + str(password))
with open("account.txt", 'a') as f:
f.write(str(email) + ":" + str(password))
f.write(str(email) + ":" + str(password) + ":" + str(datetime.now().strftime("%d-%m-%Y")))
f.write("\n")
print("account saved")
print("We have clicked on verification link")
Expand All @@ -293,5 +294,5 @@ def main(self, driver = "", email="", password=""):
# end of class

if __name__ == "__main__":

print('done')
current_date = datetime.now().strftime("%d-%m-%Y")
print(current_date)

0 comments on commit 6b3273b

Please sign in to comment.