Skip to content

Takes a Medium article and makes a Word document out of it

Notifications You must be signed in to change notification settings

VersorVerbi/medium-to-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

medium-to-word

Takes a Medium article and makes a Word document out of it.

Vanilla vs Node.js

This started as a quick project to handle some article backups for a Medium publication I work with. I used vanilla JS, which (most significantly) means using the free public API for image-size, which is rate-limited to 15 queries/hour. If you want to do the minor changes needed to revamp this for Node.js, you can just install and import image-size yourself. If you do that, you can also speed up the Word document generation by installing and importing docx instead of using the public API.

Usage

Otherwise, you just need a place to put these files (http://localhost/ will even do it) and a token from Saasify. Put the Saasify token in a tokens.js file (as seen in the tokens.js.example file in the repo). Then open the webpage and download away.

FAQ

Why not use Medium's API?

Medium's API covers writing articles and uploading images. The only things you can GET are a user's publications and a publication's users. That doesn't help us, so we use Medium's RSS feeds and convert them from XML to JSON for consumption.

Why not just consume the XML?

I was in a hurry and consuming JSON sounded easier.

Where are my article's horizontal rules / asterisk section breaks?

Medium doesn't include those in the RSS feed. We would handle them if they did.

I don't like the formatting in my generated Word document.

Fork or change it after downloading.

No, it's literally broken.

Make an issue, I guess?

About

Takes a Medium article and makes a Word document out of it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published