Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Guide for setting things up

Ayam Dobhal edited this page Jun 16, 2020 · 3 revisions

Installation

Windows

  • Reddit-cli requires Python 3.6 or above. Get it here.
  1. Clone the repository to your disk: download on windows download and extract.
  2. Open command prompt and cd to the reddit-cli directory: cd to dir
  3. Run pip install -r requirements.txt to install the required packages.
  4. Create credentials.json. It should have the following format:

{"client_id":"<client_id>", "client_secret":"<client_secret>", "user_agent":"('platform:''com.package.reddit:v1.0''(by /u/username)')"}

  • You can get your client_id and client_secret by creating an app through this link.
  1. To run the script, enter python -m reddit
  • Afterwards, follow the on screen instructions

Linux

  • Install python using sudo apt update && sudo apt install python
  • Install git using sudo apt install git
  1. Clone the repository to your disk using:

git clone https://github.com/AyamDobhal/reddit-cli

  1. cd to the directory using:

cd reddit-cli

  1. Run pip install -r requirements.txt to install required packages.

  2. Create credentials.json. It should have the following format:

{"client_id":"<client_id>", "client_secret":"<client_secret>", "user_agent":"('platform:"'com.package.reddit:v1.0''(by /u/username)')"}

  • You can get your client_id and client_secret by creating an app through this link.
  1. To run the script, enter python -m reddit
  • Afterwards, follow the on screen instructions

Android

  1. Open Termux.
  2. run termux-setup-storage and give storage permissions.
  3. Install termux-api package using pkg install termux-api.
  4. Install Python using pkg install python.
  5. Install git using pkg install git.
  6. Clone the repository to your disk using:

git clone https://github.com/AyamDobhal/reddit-cli

  1. cd to the directory using:

cd reddit-cli

  1. Run pip install -r requirements.txt to install required packages.

  2. Create credentials.json. It should have the following format:

{"client_id":"<client_id>", "client_secret":"<client_secret>", "user_agent":"('platform:''com.package.reddit:v1.0''(by /u/username)')"}

  • You can get your client_id and client_secret by creating an app through this link.
  1. To run the script, enter python -m reddit
  • Afterwards, follow the on screen instructions
Clone this wiki locally