-
-
Notifications
You must be signed in to change notification settings - Fork 2
Guide for setting things up
- Reddit-cli requires Python 3.6 or above. Get it here.
- Clone the repository to your disk: download and extract.
- Open command prompt and cd to the reddit-cli directory:
- Run
pip install -r requirements.txt
to install the required packages. - 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.
- To run the script, enter
python -m reddit
- Afterwards, follow the on screen instructions
- Install python using
sudo apt update && sudo apt install python
- Install git using
sudo apt install git
- Clone the repository to your disk using:
git clone https://github.com/AyamDobhal/reddit-cli
- cd to the directory using:
cd reddit-cli
-
Run
pip install -r requirements.txt
to install required packages. -
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.
- To run the script, enter
python -m reddit
- Afterwards, follow the on screen instructions
- Install Termux from Google Play or F-Droid.
- Install Termux-API from Google Play or F-Droid.
- Open Termux.
- run
termux-setup-storage
and give storage permissions. - Install termux-api package using
pkg install termux-api
. - Install Python using
pkg install python
. - Install git using
pkg install git
. - Clone the repository to your disk using:
git clone https://github.com/AyamDobhal/reddit-cli
- cd to the directory using:
cd reddit-cli
-
Run
pip install -r requirements.txt
to install required packages. -
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.
- To run the script, enter
python -m reddit
- Afterwards, follow the on screen instructions