Generate text from subreddit's self posts using markov chains.
- A reddit account and a reddit script app
- Python 3
- Praw
- praw.ini file inside the
src/
directory
Create a praw.ini file inside the /src/ directory.
Add a new bot to the file with your reddit app credentials by appending the following to your praw.ini
file:
[imitante]
client_id=yourclientid
client_secret=yourclientsecret
password=yourpassword
username=yourusername
Open the terminal in the src/
directory inside the project and run the main.py
file with:
python3 main.py
For help on all available options:
python3 main.py -h
The generated text is written in a .txt file inside text/
directory.