commit
cef15c3a07
@ -1,4 +1,11 @@
|
|||||||
REDDIT_CLIENT_ID=""
|
REDDIT_CLIENT_ID=""
|
||||||
REDDIT_CLIENT_SECRET=""
|
REDDIT_CLIENT_SECRET=""
|
||||||
REDDIT_USERNAME=""
|
REDDIT_USERNAME=""
|
||||||
REDDIT_PASSWORD=""
|
REDDIT_PASSWORD=""
|
||||||
|
|
||||||
|
# Valid options are "yes" and "no" for the variable below
|
||||||
|
REDDIT_2FA=""
|
||||||
|
|
||||||
|
THEME=""
|
||||||
|
|
||||||
|
SUBREDDIT=""
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
assets/
|
assets/
|
||||||
.env
|
.env
|
||||||
reddit-bot-351418-5560ebc49cac.json
|
reddit-bot-351418-5560ebc49cac.json
|
||||||
|
__pycache__
|
@ -1,22 +1,26 @@
|
|||||||
from utils.console import print_markdown
|
from utils.console import print_markdown
|
||||||
import time
|
import time
|
||||||
from reddit.askreddit import get_askreddit_threads
|
|
||||||
|
from reddit.subreddit import get_subreddit_threads
|
||||||
from video_creation.background import download_background, chop_background_video
|
from video_creation.background import download_background, chop_background_video
|
||||||
from video_creation.voices import save_text_to_mp3
|
from video_creation.voices import save_text_to_mp3
|
||||||
from video_creation.screenshot_downloader import download_screenshots_of_reddit_posts
|
from video_creation.screenshot_downloader import download_screenshots_of_reddit_posts
|
||||||
from video_creation.final_video import make_final_video
|
from video_creation.final_video import make_final_video
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
import os
|
||||||
|
|
||||||
print_markdown(
|
print_markdown(
|
||||||
"### Thanks for using this tool! 😊 [Feel free to contribute to this project on GitHub!](https://lewismenelaws.com). If you have any questions, feel free to reach out to me on Twitter or submit a GitHub issue."
|
"### Thanks for using this tool! [Feel free to contribute to this project on GitHub!](https://lewismenelaws.com) If you have any questions, feel free to reach out to me on Twitter or submit a GitHub issue."
|
||||||
)
|
)
|
||||||
|
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
|
|
||||||
|
|
||||||
reddit_object = get_askreddit_threads()
|
reddit_object = get_subreddit_threads()
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
length, number_of_comments = save_text_to_mp3(reddit_object)
|
length, number_of_comments = save_text_to_mp3(reddit_object)
|
||||||
download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
|
download_screenshots_of_reddit_posts(reddit_object, number_of_comments, os.getenv("THEME"))
|
||||||
download_background()
|
download_background()
|
||||||
chop_background_video(length)
|
chop_background_video(length)
|
||||||
final_video = make_final_video(number_of_comments)
|
final_video = make_final_video(number_of_comments)
|
||||||
|
@ -1,42 +1,8 @@
|
|||||||
appdirs==1.4.4
|
|
||||||
black==20.8b1
|
|
||||||
certifi==2021.10.8
|
|
||||||
charset-normalizer==2.0.12
|
|
||||||
click==7.1.2
|
|
||||||
commonmark==0.9.1
|
|
||||||
decorator==4.4.2
|
|
||||||
flake8==3.8.3
|
|
||||||
greenlet==1.1.2
|
|
||||||
gTTS==2.2.4
|
gTTS==2.2.4
|
||||||
idna==3.3
|
|
||||||
imageio==2.19.2
|
|
||||||
imageio-ffmpeg==0.4.7
|
|
||||||
mccabe==0.6.1
|
|
||||||
moviepy==1.0.3
|
moviepy==1.0.3
|
||||||
mutagen==1.45.1
|
mutagen==1.45.1
|
||||||
mypy-extensions==0.4.3
|
|
||||||
numpy==1.22.3
|
|
||||||
pathspec==0.8.0
|
|
||||||
Pillow==9.1.1
|
|
||||||
playwright==1.22.0
|
playwright==1.22.0
|
||||||
praw==7.6.0
|
praw==7.6.0
|
||||||
prawcore==2.3.0
|
|
||||||
proglog==0.1.10
|
|
||||||
pycodestyle==2.6.0
|
|
||||||
pyee==8.1.0
|
|
||||||
pyflakes==2.2.0
|
|
||||||
Pygments==2.12.0
|
|
||||||
python-dotenv==0.20.0
|
python-dotenv==0.20.0
|
||||||
pytube==12.1.0
|
|
||||||
regex==2020.10.15
|
|
||||||
requests==2.27.1
|
|
||||||
rich==12.4.4
|
rich==12.4.4
|
||||||
six==1.16.0
|
yt_dlp==2022.5.18
|
||||||
toml==0.10.1
|
|
||||||
tqdm==4.64.0
|
|
||||||
typed-ast==1.4.1
|
|
||||||
typing_extensions==4.2.0
|
|
||||||
update-checker==0.18.0
|
|
||||||
urllib3==1.26.9
|
|
||||||
websocket-client==1.3.2
|
|
||||||
websockets==10.1
|
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "USER",
|
||||||
|
"value": "eyJwcmVmcyI6eyJ0b3BDb250ZW50RGlzbWlzc2FsVGltZSI6MCwiZ2xvYmFsVGhlbWUiOiJSRURESVQiLCJuaWdodG1vZGUiOnRydWUsImNvbGxhcHNlZFRyYXlTZWN0aW9ucyI6eyJmYXZvcml0ZXMiOmZhbHNlLCJtdWx0aXMiOmZhbHNlLCJtb2RlcmF0aW5nIjpmYWxzZSwic3Vic2NyaXB0aW9ucyI6ZmFsc2UsInByb2ZpbGVzIjpmYWxzZX0sInRvcENvbnRlbnRUaW1lc0Rpc21pc3NlZCI6MH19",
|
||||||
|
"domain": ".reddit.com",
|
||||||
|
"path": "/"
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in new issue