|
|
@ -13,7 +13,7 @@ def get_subreddit_threads():
|
|
|
|
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
|
|
|
|
print_step("Getting subbreddit threads...")
|
|
|
|
print_step("Getting subreddit threads...")
|
|
|
|
|
|
|
|
|
|
|
|
if os.getenv("REDDIT_2FA").lower() == "yes":
|
|
|
|
if os.getenv("REDDIT_2FA").lower() == "yes":
|
|
|
|
print(
|
|
|
|
print(
|
|
|
@ -31,7 +31,7 @@ def get_subreddit_threads():
|
|
|
|
reddit = praw.Reddit(
|
|
|
|
reddit = praw.Reddit(
|
|
|
|
client_id=os.getenv("REDDIT_CLIENT_ID"),
|
|
|
|
client_id=os.getenv("REDDIT_CLIENT_ID"),
|
|
|
|
client_secret=os.getenv("REDDIT_CLIENT_SECRET"),
|
|
|
|
client_secret=os.getenv("REDDIT_CLIENT_SECRET"),
|
|
|
|
user_agent="Accessing AskReddit threads",
|
|
|
|
user_agent="Accessing subreddit threads",
|
|
|
|
username=os.getenv("REDDIT_USERNAME"),
|
|
|
|
username=os.getenv("REDDIT_USERNAME"),
|
|
|
|
password=passkey,
|
|
|
|
password=passkey,
|
|
|
|
)
|
|
|
|
)
|
|
|
|