From 54c57c7687e5b35983fee11b8c9815c22cc89648 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Tue, 28 Sep 2021 11:20:39 -0400 Subject: [PATCH] comments --- index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index 77d82fa..d2eb0ca 100644 --- a/index.py +++ b/index.py @@ -49,7 +49,7 @@ while True: l_message_author = str(browser.find_element_by_xpath("/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[1]/div/div/div[last()]/div[1]/div/a").get_attribute("href"))[26:-1] except NoSuchElementException as exception: l_message_author = username - + # get last message's author if not found its probably you who sent it last_line = '' with open('messages.txt', "r") as f: for line in f: @@ -66,4 +66,4 @@ while True: f.writelines(last_message) f.close() # if last dm is already logged, do nothing, else log it -#? probably better to log to a json file \ No newline at end of file +#? probably better to log to a json file or a db \ No newline at end of file