|
|
@ -13,13 +13,15 @@ def get_askreddit_threads():
|
|
|
|
load_dotenv()
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
|
|
|
|
print_step("Getting AskReddit threads...")
|
|
|
|
print_step("Getting AskReddit threads...")
|
|
|
|
|
|
|
|
print(os.getenv("REDDIT_2FA"))
|
|
|
|
if os.getenv("REDDIT_2FA") == "yes" or "YES":
|
|
|
|
if os.getenv("REDDIT_2FA").lower() == "yes":
|
|
|
|
print("\nEnter your two-factor authentication code from your authenticator app.\n")
|
|
|
|
print(
|
|
|
|
|
|
|
|
"\nEnter your two-factor authentication code from your authenticator app.\n"
|
|
|
|
|
|
|
|
)
|
|
|
|
code = input("> ")
|
|
|
|
code = input("> ")
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|
pw = os.getenv("REDDIT_PASSWORD")
|
|
|
|
pw = os.getenv("REDDIT_PASSWORD")
|
|
|
|
passkey = f'{pw}:{code}'
|
|
|
|
passkey = f"{pw}:{code}"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
passkey = os.getenv("REDDIT_PASSWORD")
|
|
|
|
passkey = os.getenv("REDDIT_PASSWORD")
|
|
|
|
|
|
|
|
|