Documentation for the Reddit bot
  • The Reddit Bot?
  • Prerequisites
  • Downloading the Bot
  • Getting the packages in place
  • Installing playwright
  • Configure The Bot
  • Running the bot
  • Viewing the video
  • Troubleshooting
  • Final Words
  • Examples
Powered by GitBook
On this page
  • Installing playwright
  • Installing headless browser

Installing playwright

playwright is an API to automate browsers like Chrome, and Firefox. etc... It is needed to take screenshots of the reddit thread

PreviousGetting the packages in placeNextConfigure The Bot

Last updated 2 years ago

Playwright is installed in the requirements.txt.

You can install Playwright with the PIP package manager or Conda.

Link to the installation guide:

Installing playwright

pip install -r requirements.txt

If you do encounter errors, you can install it separately by running these commands:

pip install playwright

or

pip3 install playwright

Installing headless browser

The headless browser will take the screenshots needed for the video.

python -m playwright install
python -m playwright install-deps
https://playwright.dev/python/docs/intro#pip