HTML 2 Tumblr
This website lets you convert HTML documents to tumblr post drafts. Please note that this website is not associated with or endorsed by tumblr.
How does it work?
- Login with your tumblr account
- Upload an HTML file
- The generated tumblr post will be saved to your drafts, where you can edit and publish it
Does this site steal my data?
No, this site doesn't store any data about you. When you connect with a tumblr account, the tumblr access token is stored as a cookie in your browser. When you upload an HTML file, it is converted into a tumblr post and sent to the tumblr API as a post draft.
Is this site open source?
The code for converting HTML into tumblr posts is open source under the Apache-2.0 license: https://jfhr.de/source/jfhr/deltaconvert or https://github.com/jfhr/deltaconvert
The website itself is in a separate repository, but under the same license: https://jfhr.de/source/jfhr/html2tumblr or https://github.com/jfhr/html2tumblr
Something's not working!
Please tell me! Send an email to me@jfhr.de
Include in the email what you did, what you expected to happen and what actually happened.
Is there an API?
Yes, send a POST
request with text/html
content to
https://html2tumblr.jfhr.de/api/html2npf
The response will be a JSON structure that conforms to the tumblr Neue Post Format. You can then send that structure to the tumblr API.
For example:
curl https://html2tumblr.jfhr.de/api/html2npf \ -H 'content-type: text/html; charset=utf-8' \ -d '<p>The <span style="color:#ff0000">cake</span> is a <b>lie</b>!</p>' \ | jq { "content": [ { "type": "text", "text": "The cake is a lie!", "formatting": [ { "start": 4, "end": 8, "type": "color", "hex": "#ff0000" }, { "start": 14, "end": 17, "type": "bold" } ] } ] }