/Reddit-Dark-Jokes

A simple python script that fetches jokes from r/darkjokes and optionally adds them to variety wallpaper quotes

Primary LanguagePython

Reddit-Dark-Jokes

A simple python script that fetches jokes from r/darkjokes and optionally adds them to variety wallpaper quotes

how to run

  1. clone this repo & create a virtual environment(optional)
  2. go to reddit
  3. create an app
  4. set redirect url to localhost:8000
  5. copy the credentials you are given
  6. create a .env file in the project's root directory
  7. add the credentials to the .env file like this:
 client_id = "client id that reddit gave you."
 client_secret = "secret key that reddit gave you."
 user_agent = "whatever name you gave your reddit app while creating it."
  1. do a pip install -r requirements.txt in your terminal
  2. run the script. python3 main.py
  3. You can optionally add a commandline argument if you're on linux and have variety installed. by running: python3 main.py var screenshot