/ NodeJS

Weekend Coding - Create Embeddable HTML from WhatsApp Chats

There was a discussion going on in Nagpur Techies WhatsApp group which I thought was worth sharing about. But as we all know, the discussions will fade away with time, as there is no way to publish these discussions on the internet, as of now.

So a thought came into my mind - to publish these WhatsApp chats to blogs i.e. in HTML. So I wrote a small NodeJS script which does convert WhatsApp messages copied from WhatsApp Web to an HTML file.

WhatsApp to HTML

Converts WhatsApp messages copied from WhatsApp Web into Twitter bootstrap based HTML text, ready to be copy-pasted.

How to use it?

Clone the repository

git clone git@github.com:nagpurtechies/whatsapptohtml.git

Install Node packages

cd whatsapptohtml && npm install

Copy Paste messages
Copy your messages from WhatsApp Web to messages.txt file.

Run Script

node index.js

View Output

Open output.html file in your browser.

You can download the code from Here. It is just a small project, I hope it will help someone to do more creative stuff. If you use it, please let me know on my twitter handle @tembhurnerakesh

Rakesh Tembhurne

Rakesh Tembhurne

Rakesh is a father, software engineer, author and mentor having more than 8+ years of experience in web apps development.

Read More