Giter Club home page Giter Club logo

redditvideomakerbot's Introduction

Reddit Video Maker Bot 🎥

All done WITHOUT video editing or asset compiling. Just pure ✨programming magic✨.

Created by Lewis Menelaws & TMRRW

Video Explainer

lewisthumbnail

Motivation 🤔

These videos on TikTok, YouTube and Instagram get MILLIONS of views across all platforms and require very little effort. The only original thing being done is the editing and gathering of all materials...

... but what if we can automate that process? 🤔

Disclaimers 🚨

  • At the moment, this repository won't attempt to upload this content through this bot. It will give you a file that you will then have to upload manually. This is for the sake of avoiding any sort of community guideline issues.

Requirements

  • Python 3.10
  • Playwright (this should install automatically in installation)

Installation 👩‍💻

  1. Clone this repository
  2. Run pip install -r requirements.txt
  3. Run python -m playwright install and python -m playwright install-deps

EXPERIMENTAL!!!!

On macOS and Linux (debian, arch, fedora and centos, and based on those), you can run an install script that will automatically install steps 1 to 3. (requires bash)

bash <(curl -sL https://raw.githubusercontent.com/elebumm/RedditVideoMakerBot/master/install.sh)

This can also be used to update the installation

  1. Run python main.py
  2. Visit the Reddit Apps page., and set up an app that is a "script". Paste any URL in redirect URL. Ex:google.com
  3. The bot will ask you to fill in your details to connect to the Reddit API, and configure the bot to your liking
  4. Enjoy 😎
  5. If you need to reconfigure the bot, simply open the config.toml file and delete the lines that need to be changed. On the next run of the bot, it will help you reconfigure those options.

(Note if you got an error installing or running the bot try first rerunning the command with a three after the name e.g. python3 or pip3)

If you want to read more detailed guide about the bot, please refer to the documentation

Video

final_video.mp4

Contributing & Ways to improve 📈

In its current state, this bot does exactly what it needs to do. However, improvements can always be made!

I have tried to simplify the code so anyone can read it and start contributing at any skill level. Don't be shy :) contribute!

  • Creating better documentation and adding a command line interface.
  • Allowing the user to choose background music for their videos.
  • Allowing users to choose a reddit thread instead of being randomized.
  • Allowing users to choose a background that is picked instead of the Minecraft one.
  • Allowing users to choose between any subreddit.
  • Allowing users to change voice.
  • Checks if a video has already been created
  • Light and Dark modes
  • NSFW post filter

Please read our contributing guidelines for more detailed information.

For any questions or support join the Discord server

Developers and maintainers.

Elebumm (Lewis#6305) - https://github.com/elebumm (Founder)

Jason (personality.json) - https://github.com/JasonLovesDoggo (Maintainer)

Simon (OpenSourceSimon) - https://github.com/OpenSourceSimon

CallumIO (c.#6837) - https://github.com/CallumIO

Verq (Verq#2338) - https://github.com/CordlessCoder

LukaHietala (Pix.#0001) - https://github.com/LukaHietala

Freebiell (Freebie#3263) - https://github.com/FreebieII

Aman Raza (electro199#8130) - https://github.com/electro199

LICENSE

Roboto Fonts are licensed under Apache License V2

redditvideomakerbot's People

Contributors

ahopefulidiot avatar andronedev avatar arjun-dureja avatar asadhumayun avatar blockarchitech avatar callumio avatar cordlesscoder avatar dependabot[bot] avatar domizianoscarcelli avatar elebumm avatar electro199 avatar freebieii avatar halloweddust5 avatar jasonlovesdoggo avatar kamushy avatar liamb13 avatar lukahietala avatar medbed1 avatar micziz avatar null3000 avatar opensourcesimon avatar owengaspard avatar patatjemc avatar propilideno avatar reoccurcat avatar rivenintech avatar sineckers avatar swoker avatar therealperson98 avatar xpl0itu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redditvideomakerbot's Issues

Running setup.py install for typed-ast did not run successfully. Anyone else having troubles?

This is the cmd prompt output.

D:\RedditVideoMakerBot-master\RedditVideoMakerBot-master>pip3 install -r requirements.txt
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Collecting appdirs==1.4.4
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting black==20.8b1
Using cached black-20.8b1-py3-none-any.whl
Collecting certifi==2021.10.8
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Requirement already satisfied: charset-normalizer==2.0.12 in c:\python310\lib\site-packages (from -r requirements.txt (line 4)) (2.0.12)
Collecting click==7.1.2
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Requirement already satisfied: commonmark==0.9.1 in c:\python310\lib\site-packages (from -r requirements.txt (line 6)) (0.9.1)
Collecting decorator==4.4.2
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting flake8==3.8.3
Using cached flake8-3.8.3-py2.py3-none-any.whl (72 kB)
Collecting greenlet==1.1.2
Using cached greenlet-1.1.2-cp310-cp310-win_amd64.whl (101 kB)
Collecting gTTS==2.2.4
Using cached gTTS-2.2.4-py3-none-any.whl (26 kB)
Requirement already satisfied: idna==3.3 in c:\python310\lib\site-packages (from -r requirements.txt (line 11)) (3.3)
Collecting imageio==2.19.2
Using cached imageio-2.19.2-py3-none-any.whl (3.4 MB)
Collecting imageio-ffmpeg==0.4.7
Using cached imageio_ffmpeg-0.4.7-py3-none-win_amd64.whl (22.6 MB)
Collecting mccabe==0.6.1
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting moviepy==1.0.3
Using cached moviepy-1.0.3.tar.gz (388 kB)
Preparing metadata (setup.py) ... done
Collecting mutagen==1.45.1
Using cached mutagen-1.45.1-py3-none-any.whl (218 kB)
Collecting mypy-extensions==0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Requirement already satisfied: numpy==1.22.3 in c:\python310\lib\site-packages (from -r requirements.txt (line 18)) (1.22.3)
Collecting pathspec==0.8.0
Using cached pathspec-0.8.0-py2.py3-none-any.whl (28 kB)
Collecting Pillow==9.1.1
Using cached Pillow-9.1.1-cp310-cp310-win_amd64.whl (3.3 MB)
Collecting playwright==1.22.0
Using cached playwright-1.22.0-py3-none-win_amd64.whl (26.5 MB)
Requirement already satisfied: praw==7.6.0 in c:\python310\lib\site-packages (from -r requirements.txt (line 22)) (7.6.0)
Requirement already satisfied: prawcore==2.3.0 in c:\python310\lib\site-packages (from -r requirements.txt (line 23)) (2.3.0)
Collecting proglog==0.1.10
Using cached proglog-0.1.10-py3-none-any.whl (6.1 kB)
Collecting pycodestyle==2.6.0
Using cached pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
Collecting pyee==8.1.0
Using cached pyee-8.1.0-py2.py3-none-any.whl (12 kB)
Collecting pyflakes==2.2.0
Using cached pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
Requirement already satisfied: Pygments==2.12.0 in c:\python310\lib\site-packages (from -r requirements.txt (line 28)) (2.12.0)
Collecting python-dotenv==0.20.0
Using cached python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting pytube==12.1.0
Using cached pytube-12.1.0-py3-none-any.whl (56 kB)
Collecting regex==2020.10.15
Using cached regex-2020.10.15.tar.gz (690 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: requests==2.27.1 in c:\python310\lib\site-packages (from -r requirements.txt (line 32)) (2.27.1)
Requirement already satisfied: rich==12.4.4 in c:\python310\lib\site-packages (from -r requirements.txt (line 33)) (12.4.4)
Requirement already satisfied: six==1.16.0 in c:\python310\lib\site-packages (from -r requirements.txt (line 34)) (1.16.0)
Collecting toml==0.10.1
Using cached toml-0.10.1-py2.py3-none-any.whl (19 kB)
Collecting tqdm==4.64.0
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting typed-ast==1.4.1
Using cached typed_ast-1.4.1.tar.gz (208 kB)
Preparing metadata (setup.py) ... done
Collecting typing_extensions==4.2.0
Using cached typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Requirement already satisfied: update-checker==0.18.0 in c:\python310\lib\site-packages (from -r requirements.txt (line 39)) (0.18.0)
Requirement already satisfied: urllib3==1.26.9 in c:\python310\lib\site-packages (from -r requirements.txt (line 40)) (1.26.9)
Requirement already satisfied: websocket-client==1.3.2 in c:\python310\lib\site-packages (from -r requirements.txt (line 41)) (1.3.2)
Collecting websockets==10.1
Using cached websockets-10.1-cp310-cp310-win_amd64.whl (97 kB)
Requirement already satisfied: colorama in c:\python310\lib\site-packages (from tqdm==4.64.0->-r requirements.txt (line 36)) (0.4.4)
Using legacy 'setup.py install' for moviepy, since package 'wheel' is not installed.
Using legacy 'setup.py install' for regex, since package 'wheel' is not installed.
Using legacy 'setup.py install' for typed-ast, since package 'wheel' is not installed.
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Installing collected packages: typed-ast, toml, regex, pyee, mypy-extensions, mccabe, certifi, appdirs, websockets, typing_extensions, tqdm, pytube, python-dotenv, pyflakes, pycodestyle, Pillow, pathspec, mutagen, imageio-ffmpeg, greenlet, decorator, click, proglog, playwright, imageio, gTTS, flake8, black, moviepy
Running setup.py install for typed-ast ... error
error: subprocess-exited-with-error

× Running setup.py install for typed-ast did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\typed_ast
copying typed_ast\ast27.py -> build\lib.win-amd64-3.10\typed_ast
copying typed_ast\ast3.py -> build\lib.win-amd64-3.10\typed_ast
copying typed_ast\conversions.py -> build\lib.win-amd64-3.10\typed_ast
copying typed_ast_init_.py -> build\lib.win-amd64-3.10\typed_ast
package init file 'ast3\tests_init_.py' not found (or not a regular file)
creating build\lib.win-amd64-3.10\typed_ast\tests
copying ast3\tests\test_basics.py -> build\lib.win-amd64-3.10\typed_ast\tests
running build_ext
building '_ast27' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\ast27
creating build\temp.win-amd64-3.10\Release\ast27\Custom
creating build\temp.win-amd64-3.10\Release\ast27\Parser
creating build\temp.win-amd64-3.10\Release\ast27\Python
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iast27/Include -IC:\Python310\include -IC:\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include /Tcast27/Custom/typed_ast.c /Fobuild\temp.win-amd64-3.10\Release\ast27/Custom/typed_ast.obj
typed_ast.c
C:\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> typed-ast

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)

crashes on pngs

C:\Users\Hector\Desktop\RedditVideoMakerBot-master>py main.py


                              Thanks for using this tool! 😊 Feel free to contribute to this project on GitHub!. If you have any questions, feel free to reach out to me on Twitter or submit a GitHub issue.


┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Getting AskReddit threads...                                                                                                                                                                                                             │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Video will be: Men of Reddit, what are some questions you’ve always wanted to ask women, but couldn’t because it would seem weird? 👍
Received AskReddit threads Successfully.
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Saving Text to MP3 files 🎶                                                                                                                                                                                                              │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Saving... ---------------------------------------- 0.2 it/s
Saved Text to MP3 files Successfully.
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Downloading Screenshots of Reddit Posts 📷                                                                                                                                                                                               │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Launching Headless Browser...
Traceback (most recent call last):
  File "C:\Users\Hector\Desktop\RedditVideoMakerBot-master\main.py", line 19, in <module>
    download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
  File "C:\Users\Hector\Desktop\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 26, in download_screenshots_of_reddit_posts
    page.goto(reddit_object["thread_url"])
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\sync_api\_generated.py", line 7413, in goto
    self._sync(
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_page.py", line 493, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_frame.py", line 122, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python39\lib\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.reddit.com/r/AskReddit/comments/v1m1ad/men_of_reddit_what_are_some_questions_youve/", waiting until "load"
============================================================

playwright._impl._api_types.Error: Executable doesn't exist + problem with video download

Hello !

I installed the requirements, I checked and playwright is installed as well but when I run main.py I get this error :
playwright._impl._api_types.Error: Executable doesn't exist
Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ playwright install

Do you know what I should do ?
Maybe reinstall / update playwright ?

'charmap' codec can't encode character '\U0001f60a' in position 1: character maps to <undefined>

I followed the steps in installation process, but i get this:

$ python3 main.py

Thanks for using this tool!Traceback (most recent call last):
File "C:\Users\jacer\Desktop\WORKTHISTIMEPLACE\RedditVideoMakerBot\main.py", line 9, in
print_markdown(
File "C:\Users\jacer\Desktop\WORKTHISTIMEPLACE\RedditVideoMakerBot\utils\console.py", line 14, in print_markdown
console.print(md)
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 1635, in print
with self:
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 838, in exit
self._exit_buffer()
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 796, in _exit_buffer
self._check_buffer()
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 1988, in _check_buffer
legacy_windows_render(
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_windows_renderer.py", line 17, in legacy_windows_render
term.write_styled(text, style)
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_win32_console.py", line 418, in write_styled
self.write_text(text)
File "C:\Users\jacer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_win32_console.py", line 379, in write_text
self.write(text)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f60a' in position 1: character maps to

any ideas?

Redirect URL

What has to be in the Redirect URL at creating the app?

Add Backround Music

It is a good idea to add option to put some Copyright Free music into the video.

Issue #22

  • Traceback (most recent call last):
    File "main.py", line 16, in
    reddit_object = get_askreddit_threads()
    File "C:\Users\nicol\OneDrive\Bureau\New folder\reddit\askreddit.py", line 26, in get_askreddit_threads
    submission = list(threads)[random.randrange(0, 25)]
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\models\listing\generator.py", line 63, in next
    self._next_batch()
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\models\listing\generator.py", line 89, in _next_batch
    self._listing = self._reddit.get(self.url, params=self.params)
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\util\deprecate_args.py", line 43, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\reddit.py", line 634, in get
    return self._objectify_request(method="GET", params=params, path=path)
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\reddit.py", line 745, in _objectify_request
    path=path,
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\util\deprecate_args.py", line 43, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\praw\reddit.py", line 947, in request
    path=path,
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\sessions.py", line 337, in request
    url=url,
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\sessions.py", line 236, in _request_with_retries
    url,
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\sessions.py", line 195, in _make_request
    timeout=timeout,
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\rate_limit.py", line 33, in call
    kwargs["headers"] = set_header_callback()
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\sessions.py", line 283, in _set_header_callback
    self._authorizer.refresh()
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\auth.py", line 429, in refresh
    **additional_kwargs,
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\auth.py", line 155, in _request_token
    response = self._authenticator._post(url, **data)
    File "C:\Users\nicol\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\prawcore\auth.py", line 38, in _post
    raise ResponseException(response)
    prawcore.exceptions.ResponseException: received 401 HTTP response

HELLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

error: legacy-install-failure

Hi,

I get this error when i try to call "-m pip install -r requirements.txt"

LOG:

Collecting appdirs==1.4.4
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting black==20.8b1
Using cached black-20.8b1-py3-none-any.whl
Collecting certifi==2021.10.8
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting charset-normalizer==2.0.12
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting click==7.1.2
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting commonmark==0.9.1
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Collecting decorator==4.4.2
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting flake8==3.8.3
Using cached flake8-3.8.3-py2.py3-none-any.whl (72 kB)
Collecting greenlet==1.1.2
Using cached greenlet-1.1.2-cp310-cp310-macosx_10_14_x86_64.whl (92 kB)
Collecting gTTS==2.2.4
Using cached gTTS-2.2.4-py3-none-any.whl (26 kB)
Collecting idna==3.3
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting imageio==2.19.2
Using cached imageio-2.19.2-py3-none-any.whl (3.4 MB)
Collecting imageio-ffmpeg==0.4.7
Using cached imageio_ffmpeg-0.4.7-py3-none-macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (22.5 MB)
Collecting mccabe==0.6.1
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting moviepy==1.0.3
Using cached moviepy-1.0.3.tar.gz (388 kB)
Preparing metadata (setup.py) ... done
Collecting mutagen==1.45.1
Using cached mutagen-1.45.1-py3-none-any.whl (218 kB)
Collecting mypy-extensions==0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting numpy==1.22.3
Using cached numpy-1.22.3-cp310-cp310-macosx_10_14_x86_64.whl (17.6 MB)
Collecting pathspec==0.8.0
Using cached pathspec-0.8.0-py2.py3-none-any.whl (28 kB)
Collecting Pillow==9.1.1
Using cached Pillow-9.1.1-cp310-cp310-macosx_10_10_x86_64.whl (3.1 MB)
Collecting playwright==1.22.0
Using cached playwright-1.22.0-py3-none-macosx_11_0_universal2.whl (29.9 MB)
Collecting praw==7.6.0
Using cached praw-7.6.0-py3-none-any.whl (188 kB)
Collecting prawcore==2.3.0
Using cached prawcore-2.3.0-py3-none-any.whl (16 kB)
Collecting proglog==0.1.10
Using cached proglog-0.1.10-py3-none-any.whl (6.1 kB)
Collecting pycodestyle==2.6.0
Using cached pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
Collecting pyee==8.1.0
Using cached pyee-8.1.0-py2.py3-none-any.whl (12 kB)
Collecting pyflakes==2.2.0
Using cached pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
Collecting Pygments==2.12.0
Using cached Pygments-2.12.0-py3-none-any.whl (1.1 MB)
Collecting python-dotenv==0.20.0
Using cached python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting pytube==12.1.0
Using cached pytube-12.1.0-py3-none-any.whl (56 kB)
Collecting regex==2020.10.15
Using cached regex-2020.10.15.tar.gz (690 kB)
Preparing metadata (setup.py) ... done
Collecting requests==2.27.1
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting rich==12.4.4
Using cached rich-12.4.4-py3-none-any.whl (232 kB)
Collecting six==1.16.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting toml==0.10.1
Using cached toml-0.10.1-py2.py3-none-any.whl (19 kB)
Collecting tqdm==4.64.0
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting typed-ast==1.4.1
Using cached typed_ast-1.4.1.tar.gz (208 kB)
Preparing metadata (setup.py) ... done
Collecting typing_extensions==4.2.0
Using cached typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting update-checker==0.18.0
Using cached update_checker-0.18.0-py3-none-any.whl (7.0 kB)
Collecting urllib3==1.26.9
Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting websocket-client==1.3.2
Using cached websocket_client-1.3.2-py3-none-any.whl (54 kB)
Collecting websockets==10.1
Using cached websockets-10.1-cp310-cp310-macosx_10_9_x86_64.whl (96 kB)
Using legacy 'setup.py install' for moviepy, since package 'wheel' is not installed.
Using legacy 'setup.py install' for regex, since package 'wheel' is not installed.
Using legacy 'setup.py install' for typed-ast, since package 'wheel' is not installed.
Installing collected packages: typed-ast, toml, regex, pyee, mypy-extensions, mccabe, commonmark, certifi, appdirs, websockets, websocket-client, urllib3, typing_extensions, tqdm, six, pytube, python-dotenv, Pygments, pyflakes, pycodestyle, Pillow, pathspec, numpy, mutagen, imageio-ffmpeg, idna, greenlet, decorator, click, charset-normalizer, rich, requests, proglog, playwright, imageio, flake8, black, update-checker, prawcore, moviepy, gTTS, praw
Running setup.py install for typed-ast ... error
error: subprocess-exited-with-error

× Running setup.py install for typed-ast did not run successfully.
│ exit code: 1
╰─> [84 lines of output]
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.10
creating build/lib.macosx-10.9-universal2-3.10/typed_ast
copying typed_ast/conversions.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
copying typed_ast/init.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
copying typed_ast/ast3.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
copying typed_ast/ast27.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
package init file 'ast3/tests/init.py' not found (or not a regular file)
creating build/lib.macosx-10.9-universal2-3.10/typed_ast/tests
copying ast3/tests/test_basics.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast/tests
running build_ext
building '_ast27' extension
creating build/temp.macosx-10.9-universal2-3.10
creating build/temp.macosx-10.9-universal2-3.10/ast27
creating build/temp.macosx-10.9-universal2-3.10/ast27/Custom
creating build/temp.macosx-10.9-universal2-3.10/ast27/Parser
creating build/temp.macosx-10.9-universal2-3.10/ast27/Python
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Custom/typed_ast.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Custom/typed_ast.o
In file included from ast27/Custom/typed_ast.c:2:
In file included from ast27/Include/Python-ast.h:3:
ast27/Include/asdl.h:37:41: error: unknown type name 'PyArena'
asdl_seq *asdl_seq_new(Py_ssize_t size, PyArena *arena);
^
ast27/Include/asdl.h:38:49: error: unknown type name 'PyArena'
asdl_int_seq *asdl_int_seq_new(Py_ssize_t size, PyArena *arena);
^
In file included from ast27/Custom/typed_ast.c:2:
ast27/Include/Python-ast.h:398:63: error: unknown type name 'PyArena'
mod_ty _Ta27_Module(asdl_seq * body, asdl_seq * type_ignores, PyArena *arena);
^
ast27/Include/Python-ast.h:400:43: error: unknown type name 'PyArena'
mod_ty _Ta27_Interactive(asdl_seq * body, PyArena *arena);
^
ast27/Include/Python-ast.h:402:39: error: unknown type name 'PyArena'
mod_ty _Ta27_Expression(expr_ty body, PyArena *arena);
^
ast27/Include/Python-ast.h:404:65: error: unknown type name 'PyArena'
mod_ty _Ta27_FunctionType(asdl_seq * argtypes, expr_ty returns, PyArena *arena);
^
ast27/Include/Python-ast.h:406:37: error: unknown type name 'PyArena'
mod_ty _Ta27_Suite(asdl_seq * body, PyArena *arena);
^
ast27/Include/Python-ast.h:409:92: error: unknown type name 'PyArena'
decorator_list, string type_comment, int lineno, int col_offset, PyArena
^
ast27/Include/Python-ast.h:413:68: error: unknown type name 'PyArena'
decorator_list, int lineno, int col_offset, PyArena *arena);
^
ast27/Include/Python-ast.h:415:65: error: unknown type name 'PyArena'
stmt_ty _Ta27_Return(expr_ty value, int lineno, int col_offset, PyArena *arena);
^
ast27/Include/Python-ast.h:417:70: error: unknown type name 'PyArena'
stmt_ty _Ta27_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena *arena);
^
ast27/Include/Python-ast.h:420:34: error: unknown type name 'PyArena'
col_offset, PyArena *arena);
^
ast27/Include/Python-ast.h:423:25: error: unknown type name 'PyArena'
PyArena *arena);
^
ast27/Include/Python-ast.h:425:91: error: unknown type name 'PyArena'
stmt_ty _Ta27_Print(expr_ty dest, asdl_seq * values, bool nl, int lineno, int col_offset, PyArena
^
ast27/Include/Python-ast.h:429:61: error: unknown type name 'PyArena'
type_comment, int lineno, int col_offset, PyArena *arena);
^
ast27/Include/Python-ast.h:432:21: error: unknown type name 'PyArena'
PyArena *arena);
^
ast27/Include/Python-ast.h:435:18: error: unknown type name 'PyArena'
PyArena *arena);
^
ast27/Include/Python-ast.h:438:62: error: unknown type name 'PyArena'
type_comment, int lineno, int col_offset, PyArena *arena);
^
ast27/Include/Python-ast.h:440:92: error: unknown type name 'PyArena'
stmt_ty _Ta27_Raise(expr_ty type, expr_ty inst, expr_ty tback, int lineno, int col_offset, PyArena
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> typed-ast

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

.env file

I was wondering if anyone was able to go into a bit more detail for steps 2 onwards. I have managed to close the repository and download it onto my file manager however the steps after this I am getting stuck at. I can rename the env file to just env however it won't open in adobe acrobat, its either not a supported file type or corrupted. Any help? Thank you

Error

When main.py is run it output this error
error22

No module named 'dotenv'

Launching main.py it says:

Traceback (most recent call last):
File "/Users/dsrptd/Documents/RedditVideoMakerBot/main.py", line 3, in
from reddit.askreddit import get_askreddit_threads
File "/Users/dsrptd/Documents/RedditVideoMakerBot/reddit/askreddit.py", line 4, in
from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'

nothing...

$ python main.py

Thanks for using this tool!Traceback (most recent call last):
File "C:\Users\justi\RedditVideoMakerBot\main.py", line 9, in
print_markdown(
File "C:\Users\justi\RedditVideoMakerBot\utils\console.py", line 14, in print_markdown
console.print(md)
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 1635, in print
with self:
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 838, in exit
self._exit_buffer()
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 796, in _exit_buffer
self._check_buffer()
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 1988, in _check_buffer
legacy_windows_render(
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_windows_renderer.py", line 17, in legacy_windows_render
term.write_styled(text, style)
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_win32_console.py", line 418, in write_styled
self.write_text(text)
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_win32_console.py", line 379, in write_text
self.write(text)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f60a' in position 1: character maps to

Error at Installing Dotenv (metadata-generation-failed)

I tried to Install dotenv with: "pip3 install dotenv"
Collecting dotenv
Using cached dotenv-0.0.5.tar.gz (2.4 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [65 lines of output]
WARNING: The wheel package is not available.
error: subprocess-exited-with-error

    python setup.py egg_info did not run successfully.
    exit code: 1

    [16 lines of output]
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 14, in <module>
      File "C:\Users\Alex\AppData\Local\Temp\pip-wheel-2pm3z4gw\distribute_f2d752ce995e4d0aa0280e6a910f651d\setuptools\__init__.py", line 2, in <module>
        from setuptools.extension import Extension, Library
      File "C:\Users\Alex\AppData\Local\Temp\pip-wheel-2pm3z4gw\distribute_f2d752ce995e4d0aa0280e6a910f651d\setuptools\extension.py", line 5, in <module>
        from setuptools.dist import _get_unpatched
      File "C:\Users\Alex\AppData\Local\Temp\pip-wheel-2pm3z4gw\distribute_f2d752ce995e4d0aa0280e6a910f651d\setuptools\dist.py", line 7, in <module>
        from setuptools.command.install import install
      File "C:\Users\Alex\AppData\Local\Temp\pip-wheel-2pm3z4gw\distribute_f2d752ce995e4d0aa0280e6a910f651d\setuptools\command\__init__.py", line 8, in <module>
        from setuptools.command import install_scripts
      File "C:\Users\Alex\AppData\Local\Temp\pip-wheel-2pm3z4gw\distribute_f2d752ce995e4d0aa0280e6a910f651d\setuptools\command\install_scripts.py", line 3, in <module>
        from pkg_resources import Distribution, PathMetadata, ensure_directory
      File "C:\Users\Alex\AppData\Local\Temp\pip-wheel-2pm3z4gw\distribute_f2d752ce995e4d0aa0280e6a910f651d\pkg_resources.py", line 1518, in <module>
        register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
    AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: metadata-generation-failed

  Encountered error while generating package metadata.

  See above for output.

  note: This is an issue with the package mentioned above, not pip.
  hint: See above for details.
  Traceback (most recent call last):
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\installer.py", line 75, in fetch_build_egg
      subprocess.check_call(cmd)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 369, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['C:\\Users\\Alex\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Alex\\AppData\\Local\\Temp\\tmpxopmoj80', '--quiet', 'distribute']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\Alex\AppData\Local\Temp\pip-install-iqjw1r9a\dotenv_aab941308c4e4085b3af04bf6b8f1cd8\setup.py", line 13, in <module>
      setup(name='dotenv',
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\__init__.py", line 152, in setup
      _install_setup_requires(attrs)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\__init__.py", line 147, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\dist.py", line 806, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pkg_resources\__init__.py", line 766, in resolve
      dist = best[req.key] = env.best_match(
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pkg_resources\__init__.py", line 1051, in best_match
      return self.obtain(req, installer)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pkg_resources\__init__.py", line 1063, in obtain
      return installer(requirement)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\dist.py", line 877, in fetch_build_egg
      return fetch_build_egg(self, req)
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\installer.py", line 77, in fetch_build_egg
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['C:\\Users\\Alex\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Alex\\AppData\\Local\\Temp\\tmpxopmoj80', '--quiet', 'distribute']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the 'C:\Users\Alex\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.

script crashes when getting the screenshots

realy didn't know what happened just used it and then boom just crashed , can't realy get it bc i have 0 experiance ith headless browser

Launching Headless Browser...
Traceback (most recent call last):
  File "C:\Users\Megaport\Desktop\RedditVideoMakerBot-master\main.py", line 19, in <module>
    download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
  File "C:\Users\Megaport\Desktop\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 22, in download_screenshots_of_reddit_posts
    browser = p.chromium.launch()
  File "C:\Users\Megaport\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright\sync_api\_generated.py", line 11538, in launch
    self._sync(
  File "C:\Users\Megaport\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\Megaport\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright\_impl\_browser_type.py", line 90, in launch
    Browser, from_channel(await self._channel.send("launch", params))
  File "C:\Users\Megaport\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\Megaport\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Executable doesn't exist at C:\Users\Megaport\AppData\Local\ms-playwright\chromium-1005\chrome-win\chrome.exe
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated.       ║
║ Please run the following command to download new browsers: ║
║                                                            ║
║     playwright install                                     ║
║                                                            ║
║ <3 Playwright Team                                         ║
╚════════════════════════════════════════════════════════════╝

Error while installing requirements.txt

There is an error while installing the requirements.txt file using command pip install -r requirements.txt.
It is showing something like this

Processing d:\appleinternal\buildroot\library\caches\com.apple.xbs\sources\pytho
n3\python3-110\six-1.15.0-py2.py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or d
irectory: '\\AppleInternal\\BuildRoot\\Library\\Caches\\com.apple.xbs\\Sources\\
python3\\python3-110\\six-1.15.0-py2.py3-none-any.whl'

I am currently on Windows and using python 3.8.
Hope you fix it

Create a realease

Hey guys, you should create a realease so it is easier for end user to download, not too hard but makes it easier for us <3

Missing file or something

Hi, after installing and other needed procedures to get this working i got this:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\Vojtěch Faltýnek\Desktop\RedditVideoMakerBot-master working\RedditVideoMakerBot-master> & 'C:\Users\Vojtěch Faltýnek\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' 'c:\Users\Vojtěch Faltýnek.vscode\extensions\ms-python.python-2022.6.3\pythonFiles\lib\python\debugpy\launcher' '50200' '--' 'c:\Users\Vojtěch Faltýnek\Desktop\RedditVideoMakerBot-master working\RedditVideoMakerBot-master\main.py'
Traceback (most recent call last):
File "c:\Users\Vojtěch Faltýnek\Desktop\RedditVideoMakerBot-master working\RedditVideoMakerBot-master\main.py", line 1, in
from utils.console import print_markdown
File "c:\Users\Vojtěch Faltýnek\Desktop\RedditVideoMakerBot-master working\RedditVideoMakerBot-master\utils\console.py", line 1, in
from rich.console import Console
ModuleNotFoundError: No module named 'rich'
PS C:\Users\Vojtěch Faltýnek\Desktop\RedditVideoMakerBot-master working\RedditVideoMakerBot-master>

Sorry, im new in programming and stuff like this :D I really hope someone gonna help me solve this.

UnicodeEncodeError when running the code

I am receiving the following error when running the code. What could be the issue?

UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f60a' in position 1: character maps to

No moduel named 'rich'

"C:\Users\user\Desktop\RedditVideoMakerBot-master> python3 main.py
Traceback (most recent call last):
File "C:\Users\user\Desktop\RedditVideoMakerBot-master\main.py", line 1, in
from utils.console import print_markdown
File "C:\Users\user\Desktop\RedditVideoMakerBot-master\utils\console.py", line 1, in
from rich.console import Console
ModuleNotFoundError: No module named 'rich' "

this is the cmd output after executing "python3 main.py"

invalid_grant error

had some issues getting dependencies to pull in but now i'm running into this and a bit stumped:


  Thanks for using this tool! 😊 Feel free to contribute to this project on GitHub!. If you have any questions, feel
                             free to reach out to me on Twitter or submit a GitHub issue.


┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Getting AskReddit threads...                                                                                        │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
  File "C:\Users\vince\Desktop\RedditBot\RedditVideoMakerBot\main.py", line 16, in <module>
    reddit_object = get_askreddit_threads()
  File "C:\Users\vince\Desktop\RedditBot\RedditVideoMakerBot\reddit\askreddit.py", line 26, in get_askreddit_threads
    submission = list(threads)[random.randrange(0, 25)]
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\models\listing\generator.py", line 63, in __next__
    self._next_batch()
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\models\listing\generator.py", line 89, in _next_batch
    self._listing = self._reddit.get(self.url, params=self.params)
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\util\deprecate_args.py", line 43, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\reddit.py", line 634, in get
    return self._objectify_request(method="GET", params=params, path=path)
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\reddit.py", line 739, in _objectify_request
    self.request(
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\util\deprecate_args.py", line 43, in wrapped
    return func(**dict(zip(_old_args, args)), **kwargs)
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\praw\reddit.py", line 941, in request
    return self._core.request(
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 330, in request
    return self._request_with_retries(
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 228, in _request_with_retries
    response, saved_exception = self._make_request(
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 185, in _make_request
    response = self._rate_limiter.call(
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\rate_limit.py", line 33, in call
    kwargs["headers"] = set_header_callback()
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 283, in _set_header_callback
    self._authorizer.refresh()
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\auth.py", line 425, in refresh
    self._request_token(
  File "C:\Users\vince\AppData\Roaming\Python\Python310\site-packages\prawcore\auth.py", line 158, in _request_token
    raise OAuthException(
prawcore.exceptions.OAuthException: invalid_grant error processing request```

Please replace utils

Please replace utils for something else like notutils.console
My error
Traceback (most recent call last):
File "C:\Users\tttre\Downloads\RedditVideoMakerBot-master\main.py", line 1, in
from utils.console import print_markdown
ModuleNotFoundError: No module named 'utils.console'
after renaming utils folder and renaming "from utils.console import print_step, print_substep"
My error went away.

Timeout issue

playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for selector "[data-test-id="post-content"]"
============================================================

Any ideas why I might be getting a timeout error?

requirements error

Launching Headless Browser...
Traceback (most recent call last):
File "C:\Users\antho\Desktop\reddit\RedditVideoMakerBot\main.py", line 19, in
download_screenshots_of_reddit_posts(reddit_object, number_of_comments)
File "C:\Users\antho\Desktop\reddit\RedditVideoMakerBot\video_creation\screenshot_downloader.py", line 22, in download_screenshots_of_reddit_posts
browser = p.chromium.launch()
File "C:\Users\antho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright\sync_api_generated.py", line 11538, in launch
self._sync(
File "C:\Users\antho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright_impl_sync_base.py", line 88, in _sync
return task.result()
File "C:\Users\antho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright_impl_browser_type.py", line 90, in launch
Browser, from_channel(await self._channel.send("launch", params))
File "C:\Users\antho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright_impl_connection.py", line 39, in send
return await self.inner_send(method, params, False)
File "C:\Users\antho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\playwright_impl_connection.py", line 63, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error: Executable doesn't exist at C:\Users\antho\AppData\Local\ms-playwright\chromium-1005\chrome-win\chrome.exe
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ playwright install ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝

Main.py Module not found

I am having trouble getting the main.py to run - could anyone assist?

PS C:\Users\Dave Spottiswoode\AppData\Local\Programs\Python\Python310> .\python main.py
Traceback (most recent call last):
File "C:\Users\Dave Spottiswoode\AppData\Local\Programs\Python\Python310\main.py", line 1, in
from utils.console import print_markdown
File "C:\Users\Dave Spottiswoode\AppData\Local\Programs\Python\Python310\utils\console.py", line 1, in
from rich.console import Console
ModuleNotFoundError: No module named 'rich'
PS C:\Users\Dave Spottiswoode\AppData\Local\Programs\Python\Python310>

Error on Saving Text to MP3 Files

Traceback (most recent call last):
File "C:\Users\Gabriel\Downloads\RedditVideoMakerBot-master\RedditVideoMakerBot-master\main.py", line 18, in
length, number_of_comments = save_text_to_mp3(reddit_object)
File "C:\Users\Gabriel\Downloads\RedditVideoMakerBot-master\RedditVideoMakerBot-master\video_creation\voices.py", line 24, in save_text_to_mp3
for idx, comment in track(enumerate(reddit_obj["comments"]), "Saving..."):
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\rich\progress.py", line 147, in track
yield from progress.track(
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\rich\progress.py", line 714, in track
raise ValueError(
ValueError: unable to get size of <enumerate object at 0x000002873358EB40>, please specify 'total'

Regex installation problem

hey im really new to all of this, while running requirement.txt i get that error

image

I tried running 'pip install regex'
and i get that
image
altough when i run requirement.txt again it still gets me the same error
any idea on how to fix it ?

Cannot find module 'dotenv'

$ python3 main.py
Traceback (most recent call last):
File "C:\Users\justi\RedditVideoMakerBot\main.py", line 3, in
from reddit.askreddit import get_askreddit_threads
File "C:\Users\justi\RedditVideoMakerBot\reddit\askreddit.py", line 4, in
from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'

says client_id is missing when i have provided it

Traceback (most recent call last):
File "main.py", line 16, in
reddit_object = get_askreddit_threads()
File "/Users/prasiddhakarki/Desktop/RedditVideoMakerBot-master/reddit/askreddit.py", line 17, in get_askreddit_threads
reddit = praw.Reddit(
File "/Users/prasiddhakarki/Library/Python/3.8/lib/python/site-packages/praw/util/deprecate_args.py", line 43, in wrapped
return func(**dict(zip(_old_args, args)), **kwargs)
File "/Users/prasiddhakarki/Library/Python/3.8/lib/python/site-packages/praw/reddit.py", line 258, in init
raise MissingRequiredAttributeException(
praw.exceptions.MissingRequiredAttributeException: Required configuration setting 'client_id' missing.
This setting can be provided in a praw.ini file, as a keyword argument to the Reddit class constructor, or as an environment variable.

Nothing happens after running main

I have done everything the readme said to do but when I open main.py a console flashes up for half a second then disappears? I'm very new so sorry if its a really simple issue

How to change the voice to male

This is not an issue, as the title says, is there a way to change the TTS voice to male? If so how? If not, maybe you could add in the option? Thank you!

Help for a python command

Hi i was installing the thing and i dont interest on python and idk how to execute this commands:

  1. Run pip3 install -r requirements.txt
  2. Run python3 main.py

Help please

SSL certificate verify failed

File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>

Looks like Playwright was just installed or updated.

It wants me to playwright install but when i do it says "The term 'playwright' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

Crashing while Creating the final video

While creating the final video it crashed and I'm not sure what happened. Everything else has worked so far, except for this. Does anyone know a solution or atleast what went wrong and why?

┌─────────────────────────────────────────────────────────────────────────────┐
│ Creating the final video 🎥
└─────────────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
File "C:\RedditVideoMakerBot\main.py", line 22, in
final_video = make_final_video(number_of_comments)
File "C:\RedditVideoMakerBot\video_creation\final_video.py", line 22, in make_final_video
VideoFileClip("assets/mp4/clip.mp4")
File "C:\Users\Anwender\anaconda3\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 88, in init
self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
File "C:\Users\Anwender\anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 37, in init
self.fps = infos['video_fps']
KeyError: 'video_fps'

[Enhancement] TUI Setup Interface

I just created a fork of this project, and I'm going to work on a TUI setup interface. I'm partially inspired by CubedFileManager because it has a nice setup TUI.

If you want, you can go ahead an assign me for this and I'll push a pull request soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.