|
|
|
@ -13,7 +13,13 @@ from utils.console import print_markdown, print_substep
|
|
|
|
|
from setup_program import setup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(subreddit_=None, background=None, filename=None, thread_link_=None):
|
|
|
|
|
def main(
|
|
|
|
|
subreddit_=None,
|
|
|
|
|
background=None,
|
|
|
|
|
filename=None,
|
|
|
|
|
thread_link_=None,
|
|
|
|
|
number_of_comments=None
|
|
|
|
|
):
|
|
|
|
|
"""
|
|
|
|
|
Load .env file if exists. If it doesnt exist, print a warning and
|
|
|
|
|
launch the setup wizard. If there is a .env file, check if the
|
|
|
|
@ -53,7 +59,11 @@ def main(subreddit_=None, background=None, filename=None, thread_link_=None):
|
|
|
|
|
if configured:
|
|
|
|
|
print_substep("Enviroment Variables are set! Continuing ...", style_="bold green")
|
|
|
|
|
|
|
|
|
|
reddit_object = get_subreddit_threads(subreddit_, thread_link_)
|
|
|
|
|
reddit_object = get_subreddit_threads(
|
|
|
|
|
subreddit_,
|
|
|
|
|
thread_link_,
|
|
|
|
|
number_of_comments
|
|
|
|
|
)
|
|
|
|
|
length, number_of_comments = save_text_to_mp3(reddit_object)
|
|
|
|
|
download_screenshots_of_reddit_posts(
|
|
|
|
|
reddit_object,
|
|
|
|
|