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.cfg
file of the format:[auth] username=johndoe@reddit2kindle.com password=hunter2 [smtp] server=smtp.gmail.com port=587 [mercury] token=qwertyuiopasdfghjklzxcvbnm [reddit] client_id=123abc client_secret=qwertyuiopasdfghjklzxcvbnm
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".