diff --git a/src/unlearn/tokenpage.py b/src/unlearn/tokenpage.py index 04d66391a753ce905fd030a102e37cb065521df5..e0e6ff6acdf36df25d4c1581e2917ea31220d514 100644 --- a/src/unlearn/tokenpage.py +++ b/src/unlearn/tokenpage.py @@ -4,7 +4,7 @@ if __name__ == "__main__": pages = os.path.dirname(__file__) + "/../../public" with open(os.path.dirname(__file__) + "/password.txt", 'r') as f: password = f.read() - print("The learn password is", password) + # print("The learn password is", password) # from splinter import Browser # print("Making browser") # browser = Browser('firefox') @@ -15,8 +15,7 @@ if __name__ == "__main__": if not os.path.isdir(pages): os.mkdir(pages) - with open(pages + "/index.html", 'w') as f: - f.write("hello world!") + from unlearn.learn_config import LearnConfig from webdriver_manager.firefox import GeckoDriverManager from selenium import webdriver @@ -31,5 +30,8 @@ if __name__ == "__main__": print("Is token valid?", lc.is_token_valid()) print("token", lc.cc['access_token']) print("refresh", lc.cc['refresh_token']) + with open(pages + "/index.html", 'w') as f: + f.write(f"hello world!<p>token: {lc.cc['access_token']}</p><p>refresh_token {lc.cc['refresh_token']}</p>") +