This script fetches FAQs from the r/PESU subreddit and updates the r/PESU FAQ Wiki post with the fetched FAQs.
- Clone the repository
- Install the dependencies using
pip install -r requirements.txt - Create a Reddit app and note down the
CLIENT_IDandCLIENT_SECRET - Create a Reddit account and note down the
USERNAMEandPASSWORD. Make sure the account has wiki edit permissions on the subreddit. - Set the following environment variables:
CLIENT_ID: The client ID of the Reddit appCLIENT_SECRET: The client secret of the Reddit appUSER_AGENT: The user agent of the Reddit appUSERNAME: The username of the Reddit accountPASSWORD: The password of the Reddit account
- Run the script using
python src/main.pyExample:CLIENT_ID={CLIENT_ID} \ CLIENT_SECRET={CLIENT_SECRET} \ USER_AGENT={USER_AGENT} \ USERNAME={USERNAME} \ PASSWORD={PASSWORD} \ python src/main.py