A web app to convert a reddit post and comments into an e-book, and send it directly to your kindle device or app.
Now you can read your favourite subreddits from the comfort of your e-reader. Here is a preview of the web app and the output it produces.
-
Install Python 3
-
Install the required packages
pip install -r requirements.txt -
Either create a
settings.cfgfile of the format:[smtp_auth] username=gmailusername password=gmailpassword [smtp] server=smtp.gmail.com port=587 [mercury] token=qwertyuiopasdfghjklzxcvbnm [reddit] client_id=createyourown(see Reddit app registration section below) client_secret=createyourown(see Reddit app registration section below)
or create environment variables for SMTP_USERNAME,SMTP_PASSWORD, SMTP_SERVER, SMTP_PORT, MERCURY_TOKEN, CLIENT_ID, and CLIENT_SECRET.
- Run the app
python reddit2kindle.py
You need to add reddit2kindle to your approved Kindle e-mail senders. To do this:
- Visit Manage Your Content and Devices page.
- Go to "Your Account", select "Manage Your Content and Devices" and then select "Personal Document Settings".
- Under "Approved Personal Document E-mail List" click on "Add a new approved e-mail address".
- Add "convert@reddit2kindle.com" and select "Add Address".
You need to create a reddit API app using your reddit account for this script to work. To create one:
Go to: https://github.com/reddit-archive/reddit/wiki/OAuth2 Copy and Paste the client secret and app id in settings.cfg

