A python script to post NHK Easy News posts to r/NHKEasyNews
Credit to https://github.com/TianyiShi2001/nhk-easy for the code that parses the article content from NHK Easy news article page
python3 -m venv myenv
source myenv/bin/activate
- Run
pip install requests; pip install lxml; pip install praw
- Create a file 'praw.ini' and configure your reddit account information
[DEFAULT]
client_id=YOUR_CLIENT_ID
client_secret=YOUR_CLIENT_SECRET
password=YOUR_REDDIT_PASSWORD
username=YOUR_REDDIT_USERNAME
user_agent=YOUR_USER_AGENT
- Update the subreddit name variable:
subreddit_name = 'nhkEasyNewsTesting'
- If needed, update the lookback days variable. It's set to 10 by default
#Number of days to look back
lookbackDays = 10
- run
python __main__.py