Changed AskReddit from all defaults

pull/463/head
Arpan Pandey 4 years ago
parent 41ebf3b5e5
commit 20f591c21e

1
.gitignore vendored

@ -9,3 +9,4 @@ __pycache__
.idea/ .idea/
.DS_Store .DS_Store
out out
*.mp4

@ -9,7 +9,7 @@ import os, random, praw, re
def get_subreddit_threads(): def get_subreddit_threads():
global submission global submission
""" """
Returns a list of threads from the AskReddit subreddit. Returns a list of threads from the given subreddit.
""" """
load_dotenv() load_dotenv()
@ -77,6 +77,6 @@ def get_subreddit_threads():
except AttributeError as e: except AttributeError as e:
pass pass
print_substep("Received AskReddit threads successfully.", style="bold green") print_substep("Received subreddit threads successfully.", style="bold green")
return content return content

@ -9,7 +9,7 @@ def download_screenshots_of_reddit_posts(reddit_object, screenshot_num, theme):
"""Downloads screenshots of reddit posts as they are seen on the web. """Downloads screenshots of reddit posts as they are seen on the web.
Args: Args:
reddit_object: The Reddit Object you received in askreddit.py reddit_object: The Reddit Object you received in subreddit.py
screenshot_num: The number of screenshots you want to download. screenshot_num: The number of screenshots you want to download.
""" """
print_step("Downloading Screenshots of Reddit Posts 📷") print_step("Downloading Screenshots of Reddit Posts 📷")

@ -9,7 +9,7 @@ def save_text_to_mp3(reddit_obj):
"""Saves Text to MP3 files. """Saves Text to MP3 files.
Args: Args:
reddit_obj : The reddit object you received from the reddit API in the askreddit.py file. reddit_obj : The reddit object you received from the reddit API in the subreddit.py file.
""" """
print_step("Saving Text to MP3 files...") print_step("Saving Text to MP3 files...")
length = 0 length = 0

Loading…
Cancel
Save